Skip to content

Commit

Permalink
[minor] fixed typo in save_load
Browse files Browse the repository at this point in the history
  • Loading branch information
01110011011101010110010001101111 committed Nov 24, 2023
1 parent 1637680 commit 60b055f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/save_load_example/save_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def save_load3():
# print(model.q_layer.rx0._parameters)

traced_cell = torch.jit.trace(model, (x))
torch.jit.save(traced_cell, "model_trace.pth")
torch.jit.save(traced_cell, "model_trace.pt")

loaded_trace = torch.jit.load("model_trace.pt")
y2 = loaded_trace(x)
Expand Down

0 comments on commit 60b055f

Please sign in to comment.