Skip to content

Commit

Permalink
Clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
changm committed Mar 7, 2024
1 parent 2f7c0cc commit f50e471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/dynamo/test_dynamo.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def test_simple_model(self):
self.assertNotIn('XLAData: None',
torch_xla._XLAC._get_xla_tensor_debug_info(xla_y3))

# Tests that the dynamo bridge automatically moves tensors to XLA device
# Tests that the dynamo bridge automatically moves tensors to XLA device,
# then back to the original device.
def test_simple_model_automoves_tensors(self):
xla_device = xm.xla_device()
x = torch.tensor(100.0)
y = torch.tensor(200.0)
eager_result = self.fn_simple(x, y)
Expand Down

0 comments on commit f50e471

Please sign in to comment.