Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCaoG committed Nov 2, 2022
1 parent ece62eb commit ee594e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_short_metrics_fallback_counter(self):
xla_device = xm.xla_device()
t1 = torch.tensor(100, device=xla_device)
t2 = t1 * 2
# this will trigger a aten::_local_scalar_dense which is the same
# this will trigger a aten::_local_scalar_dense which is the same as fallback counter
if t2:
t2 += 1
assert ('aten::_local_scalar_dense' in met.short_metrics_report())
Expand Down

0 comments on commit ee594e8

Please sign in to comment.