Skip to content

Commit

Permalink
Update dynamo test to be less constrain (#6981)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCaoG authored Apr 26, 2024
1 parent b3be775 commit b9a9449
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/dynamo/test_dynamo.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,7 @@ def test_all_cpu_tensor(self):
# there should be 18 paramters + 1 input
self.assertGreater(len(w), 15)
self.assertIn('Found tensor with shape torch.Size', str(w[0].message))
# no XLA operation should happens except a empty mark_step. Partitioner should offload all CPU
# ops to CPU.
self.assertEqual(len(met.counter_names()), 1)
self.assertIn('MarkStep', met.counter_names())
self.assertLessEqual(len(met.counter_names()), 1)


class DynamoOperationsTests(test_utils.XlaTestCase):
Expand Down

0 comments on commit b9a9449

Please sign in to comment.