-
Notifications
You must be signed in to change notification settings - Fork 547
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
tensorrt 7.0 In function importInstanceNormalization: [8] Assertion failed: !isDynamic(tensor_ptr->getDimensions()) && "InstanceNormalization does not support dynamic inputs!" #374
Comments
I'm having a similar issue, but also with Opset 10. GroupNormalization is exported as an InstanceNormalization (which makes sense as a workaround), however TRT7 seems to introduce this new error. For some reason, a single normalization layer has no issue but one we add another the engine fails to export. I've attached a reproducible minimal error case here:
Environment detail:
|
does there any updates for this? |
@jinfagang did you solve this problem? I am trying to speed up FCOS with TensorRT, then I got this kind of error. |
@TengFeiHan0 same as you.I use onnx2trt to parse my fcos.onnx model, got same error! |
@jinfagang Any updates? I got the same issue with tensorRT 7.1 , pytorch 1.6 trtexec --onnx=model.onnx --verbose
|
@dechunwang @jinfagang yes, the fix will be in our next ONNX parser monthly update. Thanks. |
In TRT-7.1.3.4, I transfer FCOS with fpn also get the same problem: |
Any updates? |
The InstanceNormalizationPlugin has been updated to support dynamic shapes in the latest TRT release (7.2). For those still following this thread please upgrade to TRT 7.2 and try importing your model again. I will be closing this issue since this has been updated, if anyone is still having trouble with TRT 7.2 feel free to open a new issue. |
I use TRT 7.2.2.3 to convert dynamic input InstanceNormalization, I still has the same problem, and my cuda is 10.2. |
@VincentGu11 can you open a new issue about this and attach the model you are having trouble with? |
hello,have you solved this trouble, i met the same problem,UNSUPPORTED_NODE: Assertion failed: !isDynamic(tensor_ptr->getDimensions()) && "InstanceNormalization does not support dynamic inputs!" |
hi,have you solved this problem? |
my environment is as same as yours,how do you solve this problem? |
As mentioned in my previous comment, this failure is expected with TRT 7.0 and has been fixed in TRT 7.2. Can you upgrade your TRT version?
|
@kevinch-nv hi, i got the same problem, please tell me how can i update trt version to 7.2.0 or new , now it is version 7.1.3 installed by jetPack. Is there a way only to upgraded it on jetson xavier device. |
The changes require are a plugin change, I believe the core TRT version does not matter. You can follow the Jetpack cross compilation instructions here: https://github.com/NVIDIA/TensorRT/ to build the updated plugins, and you should be able to drag and drop the newly built binaries into the Jetson device and have your application link to those. |
Using tensorrt 7.0 pytorch 1.4 export in opset 11 got above error.
But, wired things is that, previous can be converted when using opset 10,
The text was updated successfully, but these errors were encountered: