Skip to content

hown to compile model for multi inputs? #950

Answered by narendasan
shuaizzZ asked this question in Q&A
Discussion options

You must be logged in to vote

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})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shuaizzZ
Comment options

@shuaizzZ
Comment options

@narendasan
Comment options

Answer selected by shuaizzZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #947 on March 31, 2022 20:29.