-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bindings[0] exceed min ~ max range at index 3 #859
Comments
Update: putting s to min_shape and max_shape it result to an error: creating engine |
I am facing the same issue |
I converted a torch model with multiple input but it is not working
input_shape = (1, 3 , 32, 96)
input_tensor = torch.ones(input_shape).cuda()
print("creating engine")
engine = torch2trt(self.net, [input_tensor], min_shape= [(1, 3, 32, 32)],max_shape= [(1, 3, 960, 960)],fp16_mode= True)
print("engine done")
torch.save(engine.state_dict(), 'model.pth')
the model is created but in inference if i give a shape other than (1, 3 , 32, 96) i get an error:
[05/05/2023-07:45:37] [TRT] [E] 3: [executionContext.cpp::setBindingDimensions::966] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::setBindingDimensions::966, condition: profileMinDims.d[i] <= dimensions.d[i]. Supplied binding dimension [1,3,32,64] for bindings[0] exceed min ~ max range at index 3, maximum dimension in profile is 96, minimum dimension in profile is 96, but supplied dimension is 64.
The text was updated successfully, but these errors were encountered: