How to use tensorflow and tensor-rt?

I can not find clean instruction of

  • how to set up an environment for tensorflow and tensor-rt
  • best practice and known issue
  • and working example

I am using windows. When I import tensorflow it gives

TF-TRT Warning: Could not find TensorRT

Hi @Simon_Alerdic.
Following is probably not of great help, but we never know…
Did you see this issue opened in Jan Crash when running tensorflow.python.ops.gen_array_ops.upper_bound? It hasn’t been really resolved yet, but SuryanarayanaY had a similar error message as yours 3 weeks ago:

2023-02-08 09:40:29.084974: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2.12.0-dev20230201

2023-02-08 09:45:46.342253: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2.12.0-dev20230201

then sun51 replied tried on the latest TF source code, it works, no issue. 2 days ago.
I mean maybe this is just a TensorRT / Tensroflow version issue?