mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
reduce threshold to suggest changes to expected results (#160463)
Since we increase threshold to 10% i would like suggestions to show up to update those +-2% instead of 3.3% now Pull Request resolved: https://github.com/pytorch/pytorch/pull/160463 Approved by: https://github.com/jamesjwu
This commit is contained in:
committed by
PyTorch MergeBot
parent
db763b1717
commit
6f0f4e0c3e
@ -132,10 +132,10 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
new_entry = copy.deepcopy(entry)
|
new_entry = copy.deepcopy(entry)
|
||||||
# only change if abs(ratio) > entry.noise_margin /3.
|
# only change if abs(ratio) > entry.noise_margin /5.
|
||||||
new_entry.expected_value = (
|
new_entry.expected_value = (
|
||||||
replace_with_zeros(result)
|
replace_with_zeros(result)
|
||||||
if abs(ratio) > entry.noise_margin * 100 / 3
|
if abs(ratio) > entry.noise_margin * 100 / 5
|
||||||
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