Skip to content

Commit

Permalink
Add comment to specify number of digits of precision
Browse files Browse the repository at this point in the history
  • Loading branch information
henrytwo committed Jun 8, 2022
1 parent f75c473 commit 28c50e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e2e_testing/lazy_tensor_core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class LTCNumericTests(unittest.TestCase):
def assert_tensors_almost_equal(self, tensor_a, tensor_b, message):
a, b = tensor_a.cpu().detach().numpy(), tensor_b.cpu().detach().numpy()

# Ensure tensors match up to 7 decimals of precision.
assert_almost_equal(a, b, 7, message)

def run_test(self, run_model):
Expand Down

0 comments on commit 28c50e0

Please sign in to comment.