Skip to content

Commit

Permalink
Fix test_no_grad
Browse files Browse the repository at this point in the history
  • Loading branch information
sublee committed Jun 10, 2019
1 parent 38458bf commit b1c1a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_gpipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def hook(module, input, outputs):
nonlocal latent
latent = output

partition = list(model.partitions())[0]
partition = model.partitions[0]
partition.register_forward_hook(hook)

with torch.no_grad():
Expand Down

0 comments on commit b1c1a35

Please sign in to comment.