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

Commit ca362fd

Browse files
committed
changed from long to int64_t
1 parent 4826b97 commit ca362fd

File tree

3 files changed

+51
-51
lines changed

3 files changed

+51
-51
lines changed

functorch/csrc/BatchRulesConvolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ convolution_backward_weight_batch_rule(
403403

404404
std::tuple<Tensor,Tensor,Tensor> convolution_backward_plumbing(
405405
const Tensor& grad_output_, const Tensor& input_, const Tensor& weight_,
406-
const c10::OptionalArrayRef<long> bias_sizes_opt,
406+
const c10::OptionalArrayRef<int64_t> bias_sizes_opt,
407407
IntArrayRef stride, IntArrayRef padding, IntArrayRef dilation, bool transposed,
408408
IntArrayRef output_padding, int64_t groups, std::array<bool, 3> output_mask) {
409409
const auto maybe_layer = maybeCurrentDynamicLayer();

functorch/csrc/BatchRulesModules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ template <typename F, F Func, typename A, typename B, typename C, typename... T>
295295
struct UpsampleBackwardBatchRuleHelper<F, Func, typelist<A, B, C, T...>> {
296296
static std::tuple<Tensor,optional<int64_t>> apply(
297297
const Tensor& grad_output, optional<int64_t> grad_output_bdim,
298-
OptionalArrayRef<long> output_size, IntArrayRef input_size,
298+
OptionalArrayRef<int64_t> output_size, IntArrayRef input_size,
299299
T... extra_args) {
300300
auto grad_output_ = reshape_dim_into(*grad_output_bdim, 0, grad_output);
301301
TORCH_INTERNAL_ASSERT(input_size.size() > 0);

0 commit comments

Comments
 (0)