Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
srush committed Jul 13, 2022
1 parent e9fb7ce commit 9be5903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def test_problem(d):
out2 = problem(*map(tensor, d.values()))
out = tensor(out)
out2 = torch.broadcast_to(out2, out.shape)
assert torch.equal(
assert torch.allclose(
out, out2
), "Two tensors are not equal\n Spec: \n\t%s \n\t%s" % (out, out2)

Expand Down

0 comments on commit 9be5903

Please sign in to comment.