Use torch.testing.assert_allclose (#513)
* grep -l 'torch.allclose' -r test | xargs sed -i 's/assert torch.allclose/torch.testing.assert_allclose/g' * grep -l 'torch.allclose' -r test | xargs sed -i 's/self.assertTrue(torch.allclose(\(.*\)))/torch.testing.assert_allclose(\1)/g' * Fix missing atol/rtol, wrong shape, argument order. Remove redundant shape assertions
Showing
Please register or sign in to comment