-
Notifications
You must be signed in to change notification settings - Fork 372
Closed
Labels
No Activitycomponent: api [Python]Issues re: Python APIIssues re: Python APIquestionFurther information is requestedFurther information is requested
Description
Hello. I am working with a model that takes in a tuple of inputs of different sizes. Is there a way to handle this within the existing TRTorch framework? I am attempting to compile the model with the following settings but get the accompanied error. I am running form source version on commit 247c748.
Compile settings:
compile_settings = {
"input_shapes": [
{
"min": ([1, 3, 180, 320], [1,49,2]),
"opt": ([1, 3, 180, 320], [1,49,2]),
"max": ([1, 3, 180, 320], [1,49,2])
}, # For static size [1, 3, 224, 224]
],
# "op_precision": torch.half # Run with FP16
}
Error:
TypeError: (): incompatible function arguments. The following argument types are supported:
1. (self: trtorch._C.InputRange, arg0: List[int]) -> None
Invoked with: <trtorch._C.InputRange object at 0x7fda486f67b0>, ([1, 3, 180, 320], [1, 49, 2])
The forward function of my model is the following:
def forward(self,x,seq):
x = self.input_conv(x)
x = self.input_fc(x).unsqueeze(0)
actions = self.action_fc(seq)
x, hidden = self.lstm(actions, (x, x))
output = self.output_fc(x)
return output
Thanks
Metadata
Metadata
Assignees
Labels
No Activitycomponent: api [Python]Issues re: Python APIIssues re: Python APIquestionFurther information is requestedFurther information is requested