I installed tensorflow using the following command:
sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
sudo apt-get install python3-pip
sudo python3 -m pip install --upgrade pip
sudo pip3 install -U testresources setuptools==65.5.0
sudo pip3 install -U numpy==1.22 future==0.18.2 mock==3.0.5 keras_preprocessing==1.1.2 keras_applications==1.0.8 gast==0.4.0 protobuf pybind11 cython pkgconfig packaging h5py==3.7.0
sudo pip3 install --extra-index-url Index of /compute/redist/jp/v512 tensorflow==2.12.0+nv23.06
Command 【sudo python3 -c “import tensorflow as tf; print("Num GPUs Available: ", len(tf.config.list_physical_devices(‘GPU’)))”】 returns 【true】
When I start training my model, it prompts 【E tensorflow/core/grappler/optimizers/meta_optimizer.cc:1014] layout failed: INVALID_ARGUMENT: Size of values 0 does not match size of permutation 4 @ fanin shape ingestureCNN/dropout/dropout/SelectV2-2-TransposeNHWCToNCHW-LayoutOptimizer】, but the training is still going on and the GPU usage is basically 0. Although the GPU memory usage goes up, and I’m not sure if the training process is using the GPU.
Here is the information about the version of the software that I am using:
aarch64
Jetpack 5.1.1
Ubuntu 20.04
CUDA 11.4
cuDNN 8.6