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

Commit 8b47f4c

Browse files
committed
moved movedim decomposition to batchrulesstopdecomposition
1 parent 0fcd643 commit 8b47f4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

functorch/csrc/BatchRulesStopDecomposition.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ TORCH_LIBRARY_IMPL(aten, FT_BATCHED_KEY, m) {
7272
OP_DECOMPOSE(mH);
7373
OP_DECOMPOSE2(min, other );
7474
OP_DECOMPOSE2(moveaxis, intlist);
75+
OP_DECOMPOSE2(movedim, int);
7576
OP_DECOMPOSE(msort);
7677
OP_DECOMPOSE(mT);
7778
OP_DECOMPOSE2(multiply, Tensor );

functorch/csrc/BatchRulesViews.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ TORCH_LIBRARY_IMPL(aten, FT_BATCHED_KEY, m) {
479479
VMAP_SUPPORT("expand", expand_batch_rule);
480480
VMAP_SUPPORT("unfold", unfold_batch_rule);
481481
VMAP_SUPPORT("movedim.intlist", movedim_batch_rule);
482-
m.impl("movedim.int", static_cast<Tensor(*)(const Tensor&,int64_t,int64_t)>(native::movedim)); // composite wrt autograd
483-
}
482+
}
484483

485484
}}

0 commit comments

Comments
 (0)