mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
62eea62493
commit
aaefa48441
@ -132,10 +132,10 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
new_entry = copy.deepcopy(entry)
|
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 = (
|
new_entry.expected_value = (
|
||||||
replace_with_zeros(result)
|
replace_with_zeros(result)
|
||||||
if abs(ratio) > entry.noise_margin / 4
|
if abs(ratio) > entry.noise_margin / 3
|
||||||
else entry.expected_value
|
else entry.expected_value
|
||||||
)
|
)
|
||||||
new_expected[key] = new_entry
|
new_expected[key] = new_entry
|
||||||
|
Reference in New Issue
Block a user