Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 03a9fcd

Browse files
authored
Added batch rule for LU op (#326)
Description: - Added batch rule for LU op - Updated tests Related to #240
1 parent 7b3c756 commit 03a9fcd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

functorch/csrc/BatchRulesLinearAlgebra.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ TORCH_LIBRARY_IMPL(aten, FT_BATCHED_KEY, m) {
184184
VARIADIC_BDIMS_BOXED(triangular_solve);
185185

186186
VARIADIC_BDIMS_BOXED(_det_lu_based_helper);
187+
VARIADIC_BDIMS_BOXED(_lu_with_info);
187188
}
188189
}}
189190

test/test_vmap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3188,7 +3188,6 @@ def test_vmap_exhaustive(self, device, dtype, op):
31883188
xfail('linalg.solve'),
31893189
xfail('linalg.svdvals'),
31903190
xfail('linalg.tensorinv'),
3191-
xfail('lu'),
31923191
xfail('lu_solve'),
31933192
xfail('lu_unpack'),
31943193
xfail('masked_fill'),

0 commit comments

Comments
 (0)