Skip to content

Commit

Permalink
Update aggregator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zina-cs authored Oct 8, 2024
1 parent 7fdb664 commit 37ce7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nncf/common/tensor_statistics/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def collect_statistics(self, model: TModel, graph: NNCFGraph) -> None:
if processed_samples == 0:
raise nncf.ValidationError(EMPTY_DATASET_ERROR)

if self.stat_subset_size > processed_samples:
if self.stat_subset_size is not None and self.stat_subset_size > processed_samples:
nncf_logger.warning(
f"Dataset contains only {processed_samples} samples, "
f"smaller than the requested subset size {self.stat_subset_size}."
Expand Down

0 comments on commit 37ce7a6

Please sign in to comment.