Skip to content

Commit aa4ba85

Browse files
authored
chore: doc fix (#3036)
1 parent caeaf6a commit aa4ba85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docsrc/user_guide/dynamic_shapes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ Here's a simple example that exports a matmul layer with some restrictions on dy
7474
dynamic_shapes=({2: seq_len}, {2: seq_len})
7575
# Export the model first with custom dynamic shape constraints
7676
exp_program = torch.export.export(model, tuple(inputs), dynamic_shapes=dynamic_shapes)
77-
trt_gm = torch_tensorrt.dynamo.compile(exp_program, [inputs])
77+
trt_gm = torch_tensorrt.dynamo.compile(exp_program, inputs)
7878
# Run inference
79-
trt_gm(inputs)
79+
trt_gm(*inputs)
8080
8181
8282
Dynamic shapes using torch.compile (JIT)

0 commit comments

Comments
 (0)