Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kshpv committed Nov 14, 2024
1 parent eef02ef commit 6e8ff73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nncf/experimental/common/tensor_statistics/collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(x)
self._container.append(deepcopy(x))

def _aggregate_impl(self):
return self._container
Expand Down
2 changes: 1 addition & 1 deletion nncf/quantization/algorithms/bias_correction/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def _get_bias_shift_magnitude(current_bias_value: Tensor, updated_bias_value: Te
"""
bias_shift_magnitude = fns.max(
fns.abs(
(updated_bias_value - current_bias_value) / (current_bias_value + fns.finfo(current_bias_value).min)
(updated_bias_value - current_bias_value) / (current_bias_value + fns.finfo(current_bias_value).eps)
)
)
return bias_shift_magnitude
Expand Down

0 comments on commit 6e8ff73

Please sign in to comment.