use torch.testing.assertclose instead to get more details about error in cis (#35659)
* use torch.testing.assertclose instead to get more details about error in cis * fix * style * test_all * revert for I bert * fixes and updates * more image processing fixes * more image processors * fix mamba and co * style * less strick * ok I won't be strict * skip and be done * up
This commit is contained in:
@@ -231,7 +231,7 @@ class DecisionTransformerModelIntegrationTest(unittest.TestCase):
|
||||
)
|
||||
|
||||
self.assertEqual(action_pred.shape, actions.shape)
|
||||
self.assertTrue(torch.allclose(action_pred[0, -1], expected_outputs[step], atol=1e-4))
|
||||
torch.testing.assert_close(action_pred[0, -1], expected_outputs[step], rtol=1e-4, atol=1e-4)
|
||||
state, reward, _, _ = ( # env.step(action)
|
||||
torch.randn(1, 1, config.state_dim).to(device=torch_device, dtype=torch.float32),
|
||||
1.0,
|
||||
|
||||
Reference in New Issue
Block a user