Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensorflow 2.5 already out for JetPack 4.6 #17

Open
hidoba opened this issue Oct 31, 2022 · 4 comments
Open

Tensorflow 2.5 already out for JetPack 4.6 #17

hidoba opened this issue Oct 31, 2022 · 4 comments

Comments

@hidoba
Copy link

hidoba commented Oct 31, 2022

There's a wheel for jetpack 4.6 of TF2.5 here https://elinux.org/Jetson_Zoo#ONNX_Runtime

@Qengineering
Copy link
Owner

Are you sure?

I found a TF2.5 for Python3.6, not Ubuntu's 3.8.
Also found some ONNX_Runtime wheels intended for Python 3.8.

However, with a clear statement of the TensorFlow team that TF2.5 needs CUDA 11, I really doubt if it will work.
Sure, with a cross-compile you can generate everything you like. Did you test it?

@muellevin
Copy link

@Qengineering it seems that nvidiais able to do it anyway. You are able to install tensorflow 2.7 on Jetpack 4.6 with the following steps:

# for tensorflow
sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran -y
sudo apt-get install python3-pip -y
sudo python3 -m pip install --upgrade pip
sudo -H pip3 install testresources setuptools
# numpy .5 -> core dumb
sudo -H pip3 install numpy==1.19.4 future mock keras_preprocessing keras_applications gast protobuf pybind11 cython pkgconfig packaging
# h5py needs some special magic
sudo -H H5PY_SETUP_REQUIRES=0 pip3 install -U --no-build-isolation h5py==3.1.0
sudo -H pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v461 tensorflow==2.7.0+nv22.1

Would it be possible after the upgrade to Ubuntu 20?

@Qengineering
Copy link
Owner

@muellevin,

Are you sure the installed TensorFlow version uses CUDA?
It is not the regular ARM - python 3.6 TensorFlow you have?

@muellevin
Copy link

On current JP Version 4.6.3 with Ubuntu 18.04 after the installation i typed python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU')) which returns [PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

If using the deprecated tf.test.is_gpu_available() it says that it found the NVIDIA Tegra X1 as GPU

The Tensorflow Version is from Nvidia. I was following their guide guide to install it but needed the modification from aove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants