Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwaketan committed Dec 12, 2023
1 parent f03ab86 commit cb3bad6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/spmd/test_xla_sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,6 @@ def test_backward_optimization_barrier(self):
# The first layer won't have gradients in the hook. Not sure why.
xs.xla_sharding.apply_backward_optimization_barrier(model.fc2)

# optimizer.zero_grad()
x = torch.randn(2, 128).to(xm.xla_device())
y = model(x)
loss = y.sum()
Expand Down

0 comments on commit cb3bad6

Please sign in to comment.