Skip to content

Commit a2e1acc

Browse files
committed
chore: updates
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent 570f1d3 commit a2e1acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docsrc/user_guide/saving_models.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The following code illustrates this approach.
3131
model = MyModel().eval().cuda()
3232
inputs = [torch.randn((1, 3, 224, 224)).cuda()]
3333
trt_gm = torch_tensorrt.compile(model, ir="dynamo", inputs) # Output is a torch.fx.GraphModule
34-
trt_traced_model = torchtrt.dynamo.export(trt_gm, inputs)
34+
trt_traced_model = torch.jit.trace(trt_gm, inputs)
3535
torch.jit.save(trt_traced_model, "trt_model.ts")
3636
3737
# Later, you can load it and run inference

0 commit comments

Comments
 (0)