Descrption
I tried launching the pre-built trtexec tool to generate trt engine for my onnx model (derived from torchvision Faster RCNN). My computing device is a Jetson Orin NX with two DL accelerators. Engine generation and inference was successful at FP16 precision without DLA. However, when DLA is enabled, trtexec outputs the following error during engine generation:
[09/08/2022-12:15:55] [E] Error[1]: [valueCloner.cpp::replace::31] Error Code 1: Internal Error (Tensor is not known to this ValueCloner)
[09/08/2022-12:15:55] [E] Error[2]: [builder.cpp::buildSerializedNetwork::751] Error Code 2: Internal Error (Assertion engine != nullptr failed. )
Please see attached the complete output of trtexec. dla_error_log.txt (148.5 KB)
Please help look into this matter. I am not surprised to see many layers not supported by DLA; however, I expected those layers to fall back utilizing the GPU normally.
The same error was shown when I changed the index of useDLACore to 1. There also doesn’t seem to be any similar queries related to this issue.
Many thanks in advance!
Environement TensorRT Version: 8.5.2.0 (included in JetPack 5.1.2) GPU Type: Jetson Orin NX (16GB) CUDA Version: 11.4 CUDNN Version: 8.6 Operating System + Version: Ubuntu 20.04
Relevant Files
Happy to provide my model and more details via private messages.
If the conversion works with GPU mode but fails in DLA mode with allowGPUFallback flag, then this is not expected.
Please PM the model to me so we can reproduce this issue for checking internally.
…
[02/22/2024-08:07:59] [E] Error[1]: Tensor is not known to this ValueCloner
[02/22/2024-08:07:59] [E] Error[1]: [valueCloner.cpp::replace::31] Error Code 1: Internal Error (Tensor is not known to this ValueCloner)
[02/22/2024-08:07:59] [E] Engine could not be created from network
[02/22/2024-08:07:59] [E] Building engine failed
[02/22/2024-08:07:59] [E] Failed to create engine from model or file.
[02/22/2024-08:07:59] [E] Engine set up failed
Due to the limited resources, this issue will be checked in the next debugging cycle which won’t happen shortly.
Thanks and sorry for any inconvenience.