Skip to content

Commit c9a3419

Browse files
committed
readd movedim
1 parent ab4a32f commit c9a3419

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functorch/csrc/BatchRulesViews.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ 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
482483
}
483484

484485
}}

0 commit comments

Comments
 (0)