GPU support for Tensorflow 2.6.0 on Jetson nano

Hello,
I got this error when I was converting a model using TensorRT.:
Registered Device: CPU
Registered Kernel: GPU

I tested it with tf.test.is_gpu_available() and it returned False, so I guess I got this error since TensorFlow failed to run on GPU. Then I found Tensorflow 2,6,0 requires a CUDA version of 11.2. While the latest CUDA version supported by Jetpack 4.6 is 10.2. Is there a way to build GPU support for 2.6.0 on Jetson nano? I saw many people using 2.6.0 so I wonder if I did anything wrong.

hey @zceelii
Can you once try with Previous tensorflow version Installing TensorFlow for Jetson Platform :: NVIDIA Deep Learning Frameworks Documentation please refer this docs and let us know whether you can leverage the power of gpu, as you are using tensorflow framework and trying to convert model using Tensorrt you can optimize the model using TF-TRT Installation Guide :: NVIDIA Deep Learning TensorRT Documentation follow this docs to install uff-converter to use tensorrt with tensorflow.

Thank you

Hi,

It’s known that our TensorFlow v2.6.0 package has some issue on GPU mode.
Our internal team is actively working on this.

Currently, please use v2.5.0 instead.

$ sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v46 tensorflow==2.5.0+nv21.8

Thanks.

1 Like


I tried to use Tensorflow 2.3.1 before but I got this error before getting into the GPU problem. I got libnvinfer 8 installed and 2.6.0 doesn’t has this bug. How can I solve this problem?
Many thanks

Hi,

It seems TensorFlow tries to find a TensorRT v7.1 library (libnvinfer.so.7).

May I know how do you install the package?
Please note that you will need to install the package that was built with the same JetPack version.

For example, JetPack 4.6:

$ sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/**v46** tensorflow

Thanks.

Hi I installed tensroflow flowing this guide:Installing TensorFlow For Jetson Platform :: NVIDIA Deep Learning Frameworks Documentation.

I saw this table and I thought I can only use v45 to install TensorFlow 2.3.1 while my JetPack version is v46. So I used

$ sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v45 tensorflow

to install tensorflow+ 2.3.1
Shall I use

$ sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v46 tensorflow==2.3.1+nv21.09

instead?

Hi,

We don’t have 2.3.1 for JetPack 4.6.
Please use 2.5.0+nv21.08 instead.
(2.6.0+nv21.09 has some issue currently)

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.