Tensorflow doesn’t use GPU on Jetson TX2

In jetson tx2 cuda 11.2 is installed but I can’t achive GPU with tensorflow.

$ cd /usr/local/cuda-11.4/samples/1_Utilities/deviceQuery
$ sudo make
$ ./deviceQuery

I used this command but I got FAIL:

cudaGetDeviceCount returned 3
→ initialization error
Result = FAIL


TX2 GPU driver cannot support CUDA 11 or newer.
So it won’t work.

The latest CUDA version of TX2 is 10.2.