Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix op info test for linalg.lu_factor and linalg.ldl_factor #8263

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

dvhg
Copy link
Contributor

@dvhg dvhg commented Oct 16, 2024

Fix #7486, #7487, #7491, #7492

LDL decomp is a requested JAX feature but has not been implemented. This isn't the most efficient solution and should be replaced if the FR is fulfilled.

@qihqi qihqi requested a review from ManfeiBai October 16, 2024 19:01
return C, pivots, info

# Fill diagonals of stacked matrices
@functools.partial(jnp.vectorize, signature='(k,k),(k,k)->(k,k)')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, cool, any reference here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://pytorch.org/docs/stable/generated/torch.linalg.ldl_factor.html

Specifically from the parameter list:
A (Tensor) – tensor of shape (*, n, n) where * is zero or more batch dimensions consisting of symmetric or Hermitian matrices.

Copy link
Collaborator

@ManfeiBai ManfeiBai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@ManfeiBai ManfeiBai merged commit 349958f into pytorch:master Oct 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Op info test for linalg.ldl_factor
2 participants