Skip to content

Commit c529ac0

Browse files
chunyuan-wEikanWang
authored andcommitted
reset version counter
1 parent 28b6c77 commit c529ac0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torch_ipex/csrc/cpu/DevOPs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,8 @@ at::Tensor dil_as_strided(
19291929

19301930
auto* _tensor_impl = (IPEXTensorImpl *)result.unsafeGetTensorImpl();
19311931
_tensor_impl->copy_meta_info(self.unsafeGetTensorImpl());
1932+
// reset version counter for chunk
1933+
_tensor_impl->set_version_counter(0);
19321934
_tensor_impl->copy_auto_grad(self.unsafeGetTensorImpl());
19331935

19341936
auto storage_offset = storage_offset_.value_or(self.storage_offset());

0 commit comments

Comments
 (0)