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

Commit adeaa92

Browse files
committed
Fix arg type of roll_batch_rule
This was causing build failure on Mac OS.
1 parent cda0348 commit adeaa92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functorch/csrc/BatchRulesViews.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ std::tuple<Tensor, optional<int64_t>> _reshape_alias_batch_rule(const Tensor& se
283283
return std::make_tuple(at::reshape(self, new_shape), bdim);
284284
}
285285

286-
std::tuple<Tensor, optional<int64_t>> roll_batch_rule(const Tensor& self, optional<int64_t> bdim, c10::ArrayRef<long> shifts, c10::ArrayRef<long> dims) {
286+
std::tuple<Tensor, optional<int64_t>> roll_batch_rule(const Tensor& self, optional<int64_t> bdim, IntArrayRef shifts, IntArrayRef dims) {
287287
TORCH_INTERNAL_ASSERT(bdim.has_value());
288288

289289
auto self_ = moveBatchDimToFront(self, bdim);

0 commit comments

Comments
 (0)