Skip to content

Commit b0c89f2

Browse files
committed
cosmetic
Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
1 parent d353beb commit b0c89f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aten/src/ATen/native/cuda/ForeachFunctors.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace {
99

1010
// TODO(crcrpar): Handle version bump in codegen.
1111
// rel: https://github.com/pytorch/pytorch/blob/9cf84347767c8abb8feba18a9a1baba321eeb8b9/tools/autograd/gen_inplace_or_view_type.py#L481-L482
12-
inline void maybe_increment_version(TensorList tensors) {
12+
inline void increment_version(TensorList tensors) {
1313
for (const auto & t : tensors) {
1414
t.unsafeGetTensorImpl()->bump_version();
1515
}

aten/src/ATen/native/cuda/ForeachUnaryOp.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ template <typename scalar_t, template<class> class Op> void foreach_unary_op_(Te
7373
/* r_args_depth */ 1,
7474
/* res_arg_index */ 0>(),
7575
Op<opmath_t>());
76-
maybe_increment_version(tensors);
76+
increment_version(tensors);
7777
}
7878

7979
template <template<class> class Op>

0 commit comments

Comments
 (0)