Skip to content

Commit d8f60ea

Browse files
committed
Update
1 parent 22302ec commit d8f60ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes_source/torch_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
# change logging settings at the command line. The equivalent environment
3131
# variable setting is shown for each example.
3232

33-
torch._dynamo.reset()
3433
import torch
34+
torch._dynamo.reset()
3535

3636
# exit cleanly if we are on a device that doesn't support torch.compile
3737
if torch.cuda.get_device_capability() < (7, 0):

0 commit comments

Comments
 (0)