Skip to content

Commit

Permalink
Update existing unit tests for aten::add HLO dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjoolee95 committed Mar 13, 2024
1 parent 243712a commit 29c443b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/spmd/test_xla_sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ def test_mark_sharding_ir(self):
actual += 0
hlo = torch_xla._XLAC._get_xla_tensors_hlo([actual.global_tensor])
self.assertIn(
'%add.12 = f32[1,128]{1,0} add(f32[1,128]{1,0} %custom-call.10, f32[1,128]{1,0} %broadcast.11)',
'%add.12 = f32[1,128]{1,0} add(f32[1,128]{1,0} %custom-call.9, f32[1,128]{1,0} %broadcast.11)',
hlo)

self.assertTrue(torch.allclose(expected, actual.cpu()))
Expand Down

0 comments on commit 29c443b

Please sign in to comment.