hown to compile model for multi inputs? #950
-
1)My model : out1, out2 = model(input1, input2) 2)How should i set compile settings, just like this: trt_ts_module = torch_tensorrt.compile(torch_script_module, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You would do something like: trt_ts_module = torch_tensorrt.compile(model,
inputs = [torch_tensorrt.Input(<INPUT_SHAPE_1>), torch_tensorrt.Input(<INPUT_SHAPE_2>),],
enabled_precisions = {torch.half}) |
Beta Was this translation helpful? Give feedback.
You would do something like: