Skip to content

Commit

Permalink
Fix usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadravid authored Dec 22, 2024
1 parent 25075e2 commit bf5fa71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docsrc/user_guide/saving_models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Here's an example usage
model = MyModel().eval().cuda()
inputs = [torch.randn((1, 3, 224, 224)).cuda()]
# trt_ep is a torch.fx.GraphModule object
trt_gm = torch_tensorrt.compile(model, ir="dynamo", inputs)
trt_gm = torch_tensorrt.compile(model, ir="dynamo", inputs=inputs)
torch_tensorrt.save(trt_gm, "trt.ep", inputs=inputs)
# Later, you can load it and run inference
Expand Down

0 comments on commit bf5fa71

Please sign in to comment.