-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error Code 10: Internal Error (Could not find any implementation for node failure of TensorRT 8.5 when running on GPU Jetson Xavier NX #4255
Comments
Maybe you need location the code block of ForeignNode[/Flatten...(Unnamed Layer* 139), and rewrite some ops. |
Hi @lix19937, I haven't done such thing before, is there some code pieces I can follow? Do I need to rewrite ops in pytorch environment or TensorRt environment? |
That is say, you need know which net module(layers/ops) match this foreign node by context and key layer information in torch forward graph. Usually, you can export the model in a gradual manner. Like follow def forward(x, y):
a = self.module1(x)
b = self.module2(b)
c = self.module3(y)
return a*c to def forward(x, y):
a = self.module1(x)
# b = self.module2(b)
# c = self.module3(y)
return a or def forward(x, y):
a = self.module1(x)
b = self.module2(b)
# c = self.module3(y)
return b |
Hi @lix19937, what I don't understand is Flatten is a basic operation, there is no way TensorRt wouldn't support this ops in 8.5 and start to support it in 8.6. I feel like I'm missing something basic here. This is the only Flatten node available in my onnx model. I shared forward method below. I couldn't find what method matches with Flatten node.
|
@lix19937 I have figured the line seems creating problem is this |
Before you rewrite the code map to foreign node, you can try use onnx-simplifier or polygraphy to optimize your onnx, then use trtexec. |
Description
When I try to convert SuperPoint model from onnx to tensorrt engine using trtexec I faced
error. It works in tensorrt 8.6 but since our workspace is Jetson Xavier NX and the latest supported Jetpack version for Xavier NX has Tensorrt 8.5, upgrading Tensorrt is not an option for now.
Environment
TensorRT Version: 8.5
NVIDIA GPU: Jetson Xavier NX
CUDA Version: 11.4
Operating System: Jetpack 5.1.4
Python Version (if applicable): 3.8
Relevant Files
Model link: Superpoint ONNX model
Steps To Reproduce
/trtexec --onnx=superpoint_v1.onnx --saveEngine=superpoint_v1.trt
The text was updated successfully, but these errors were encountered: