mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00: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:
parent
62eea62493
commit
aaefa48441
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue