Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchao/quantization/pt2e/observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ def _combine_histograms(
# If the orig hist only has one value (i.e., the min and max are the same)
# we can just add it into new histogram
if orig_min == orig_max:
bin_value = torch.sum(update_hist)
bin_value = torch.sum(orig_hist)
transformed_orig_hist = (
torch.histc(orig_min, bins=self.bins, min=update_min, max=update_max) # type: ignore[arg-type]
* bin_value
Expand Down
Loading