Am trying to convert tensorflow model into tensorrt optimized model using the below code
converter = trt.TrtGraphConverterV2(
File ~/.local/lib/python3.8/site-packages/tensorflow/python/compiler/tensorrt/trt_convert.py:216, in _check_trt_version_compatibility()
211 if not _pywrap_py_utils.is_tensorrt_enabled():
213 "Tensorflow needs to be built with TensorRT support enabled to allow "
214 “TF-TRT to operate.”)
→ 216 raise RuntimeError(“Tensorflow has not been built with TensorRT support.”)
218 linked_version = _pywrap_py_utils.get_linked_tensorrt_version()
219 loaded_version = _pywrap_py_utils.get_loaded_tensorrt_version()
RuntimeError: Tensorflow has not been built with TensorRT support.
but I get an error of
How do you install the TensorFlow package?
Are you using our prebuilt which has enabled the TF-TRT?
I used pip to install both tensorflow and tensorrt
Please try the installation steps shared above.
The pip installation might link to a CPU-only package.
followed the procedure I still have the same error
followed the same procedure but ends up with the same error
Could you share the TensorFlow version (tf.version) with us?
the tensorflow version is 2.12.0
It looks like you still use the CPU TensorFlow since we don’t have such a version for Nano.
It seems that you are using python3.8. Is that correct?
We only provide the package for the default Python version.
For Nano, it is Python 3.6.
I am making use of python 3.8.3,
whats the version compatible with it
Please could you tell me the best version of tensorflow and tensorrt that works for python 3.6
Am making use of jetpack version 32
Please use the TensorRT comes with the same JetPack version.
For example, TensorRT 8.2.1 for JetPack 4.6.3.
For TensorFlow, please try our package that built with the same environment:
For example, below is the package for JetPack 4.6.3:
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.