Turn atol to 1e-5 when comparing the end to end results (#17708)

Summary:
results smaller than 1e-5 don't make sense.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17708

Differential Revision: D14348893

Pulled By: houseroad

fbshipit-source-id: 5e07c38e5b58b27b61fae63bfc3c21e2fe5629fe
This commit is contained in:
Lu Fang
2019-03-06 12:02:34 -08:00
committed by Facebook Github Bot
parent 7fa996f8e2
commit 97eb139a94

View File

@ -29,7 +29,7 @@ class Errors(object):
>>> ...
"""
def __init__(self, msg, rtol=1e-3, atol=1e-7):
def __init__(self, msg, rtol=1e-3, atol=1e-5):
self.msg = msg
self.errors = []
self.context = []