Hello, I am using a JetsonNano with JetPack 4.3, Tensorflow 2.3.1 and Tensorrt 7.1.3
I have a Keras model that i covnerted to a TF-TRT model
When performing inference on the model, I get the following error:
TF-TRT Warning: Engine creation for PartitionedCall/TRTEngineOp_0_0 failed. The native segment will be used instead. Reason: Internal: Failed to build TensorRT engine
During Inference i get:
W tensorflow/compiler/tf2tensorrt/kernels/trt_engine_op.cc:629] TF-TRT Warning: Engine retrieval for input shapes: [[1,100,68,3]] failed. Running native segment for PartitionedCall/TRTEngineOp_0_0
what does it mean?
It seems like TRT is not building engines but the inference works the same.
I have performed the same inference on another PC (TF-2.4.1 and TRT 7.2)
and I do not get this error. However, I have compared the inference
results between the Keras and TF-TRT model and they are the same (both
with the error on JetsonNano and without the error on PC)
Why are my results the same? How do I solve this? Thank you!
--
You received this message because you are subscribed to the Google Groups "TensorFlow Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/developers/01ea1fd4-4f07-4855-8ec8-ed71a9685f86n%40tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/developers/CABBcqdGJ_Y7pA60LOZJDDkB0J93aSaENdyia63SEiEg6qWx%2BTA%40mail.gmail.com.
Hi,Everything seems pretty clear to me then.Thank you for your thorough reply and suggestions, they have definitely been a great help!Kind regards,
RobertoOn Friday, 5 March 2021 at 08:43:19 UTC+1 jonathan...@gmail.com wrote:It's not easy to find the ideal solution. Technically we want that the user see this message. Falling back to native segment may lead to serious performance regression. It's good practice and behavior to wonder why it is happening and having the information that it happens on hands. So I would argue that it should be a warning.Now if you tell me that warning the user is good, knowing what to do with this warning is better. I would agree. And if you have any suggestion about that, we can definitely work on this 👍