reduce the threshold to change exisiting data suggestion to noise/3 (#140623)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/140623
Approved by: https://github.com/bobrenjc93
This commit is contained in:
Laith Sakka
2024-11-13 14:11:01 -08:00
committed by PyTorch MergeBot
parent 62eea62493
commit aaefa48441

View File

@ -132,10 +132,10 @@ def main():
)
new_entry = copy.deepcopy(entry)
# only change if abs(ratio) > entry.noise_margin /4.
# only change if abs(ratio) > entry.noise_margin /3.
new_entry.expected_value = (
replace_with_zeros(result)
if abs(ratio) > entry.noise_margin / 4
if abs(ratio) > entry.noise_margin / 3
else entry.expected_value
)
new_expected[key] = new_entry