diff --git a/nncf/experimental/common/tensor_statistics/collectors.py b/nncf/experimental/common/tensor_statistics/collectors.py index 2c6ad86416e..f0728f32dd3 100644 --- a/nncf/experimental/common/tensor_statistics/collectors.py +++ b/nncf/experimental/common/tensor_statistics/collectors.py @@ -420,7 +420,7 @@ def get_inplace_fn(self) -> Optional[InplaceInsertionFNType]: return None def _reduce_out_of_place(self, x: List[TensorType]) -> List[TensorType]: - return x + return deepcopy(x) class RawReducer(NoopReducer): @@ -543,7 +543,7 @@ def __init__(self, num_samples: Optional[int]): super().__init__(None, num_samples=num_samples) def _register_reduced_input_impl(self, x: TensorType) -> None: - self._container.append(deepcopy(x)) + self._container.append(x) def _aggregate_impl(self): return self._container