Skip to content

Commit

Permalink
comment torch.jit
Browse files Browse the repository at this point in the history
  • Loading branch information
uts9 committed May 11, 2023
1 parent 36cac9a commit a4a33f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added .test_MSMT.py.swp
Binary file not shown.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ def get_id(img_path):
# To do so, we can call `.trace` on the reparamtrized module with dummy inputs
# expected by the module.
# Comment out this following line if you do not want to trace.
dummy_forward_input = torch.rand(opt.batchsize, 3, h, w).cuda()
model = torch.jit.trace(model, dummy_forward_input)
#dummy_forward_input = torch.rand(opt.batchsize, 3, h, w).cuda()
#model = torch.jit.trace(model, dummy_forward_input)

print(model)
# Extract feature
Expand Down

0 comments on commit a4a33f1

Please sign in to comment.