How to solve this error: "ForeignNode does not support data-dependent shape for now"
@zerollzeng is already working on this.
Since Jun 1, 2024.
- Dominant language
- C++
- Stars
- 13.4k
- Forks
- 2.4k
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 2
Description
Description
I am convert this model from onnx to tensorrt engine.
when I had a test using polygraphy run --trt model.onnx command, and it appeared a error:
[E] 2: [myelinBuilderUtils.cpp::getMyelinSupportType::1270] Error Code 2: Internal Error (ForeignNode does not support data-dependent shape for now.)
[!] Invalid Engine. Please ensure the engine was built correctly
[E] FAILED | Runtime: 22.843s | Command: /home/osmagic/anaconda3/envs/pytorch/bin/polygraphy run --trt
I run the command polygraphy run --onnxrt model.onnx, and there is on error.
I searched for this error, found a relative issue 3372
It said: We still don't support this, but it's in our plan and there are some effort on it.
Is this feature supported now?
If not, how can I solve this error by modifying the source code?
How can I find out which operator is causing the error?
Environment
TensorRT Version: 10.0
NVIDIA GPU: GeForce RTX 3090
NVIDIA Driver Version: 535.161.08
CUDA Version: 12.2
Operating System: ubuntu22.04
Python Version (if applicable): 3.9.7
Tensorflow Version (if applicable):
PyTorch Version (if applicable): 2.2.1
Relevant Files
Model link:
onnx model link
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.