Turn atol to 1e-5 when comparing the end to end results (#17708)
authorLu Fang <lufang@fb.com>
Wed, 6 Mar 2019 20:02:34 +0000 (12:02 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 6 Mar 2019 20:06:45 +0000 (12:06 -0800)
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

test/onnx/verify.py

index c8521cd..b92926a 100644 (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 = []