Official TensorFlow for Jetson AGX Xavier

hello @skama these are the commands return

nvidia@jetson-0423618000766:~$ ls -la /usr/lib/aarch64-linux-gnu/libcu*
lrwxrwxrwx 1 root root 16 Nov 22 16:19 /usr/lib/aarch64-linux-gnu/libcuda.so -> tegra/libcuda.so
-rw-r–r-- 1 root root 51552 Jun 23 01:36 /usr/lib/aarch64-linux-gnu/libcupscgi.so.1
lrwxrwxrwx 1 root root 23 Apr 6 2018 /usr/lib/aarch64-linux-gnu/libcupsfilters.so.1 -> libcupsfilters.so.1.0.0
-rw-r–r-- 1 root root 198584 Apr 6 2018 /usr/lib/aarch64-linux-gnu/libcupsfilters.so.1.0.0
-rw-r–r-- 1 root root 30408 Jun 23 01:36 /usr/lib/aarch64-linux-gnu/libcupsimage.so.2
-rw-r–r-- 1 root root 22216 Jun 23 01:36 /usr/lib/aarch64-linux-gnu/libcupsmime.so.1
-rw-r–r-- 1 root root 116728 Jun 23 01:36 /usr/lib/aarch64-linux-gnu/libcupsppdc.so.1
-rw-r–r-- 1 root root 526152 Jun 23 01:36 /usr/lib/aarch64-linux-gnu/libcups.so.2
lrwxrwxrwx 1 root root 19 Oct 29 20:10 /usr/lib/aarch64-linux-gnu/libcurl-gnutls.so.3 -> libcurl-gnutls.so.4
lrwxrwxrwx 1 root root 23 Oct 29 20:10 /usr/lib/aarch64-linux-gnu/libcurl-gnutls.so.4 -> libcurl-gnutls.so.4.5.0
-rw-r–r-- 1 root root 436464 Oct 29 20:10 /usr/lib/aarch64-linux-gnu/libcurl-gnutls.so.4.5.0

nvidia@jetson-0423618000766:~$ update-alternatives --display libcudnn
update-alternatives: error: no alternatives for libcudnn

Hi, artemisl

Please install CUDA/cuDNN package directly from the JetPack.
The package you downloaded is for desktop environment(x86), doesn’t support Jetson platform(aarch64).

There is a known issue that JetPack installer may close after flashing without installing packages in several case.
Please re-check if you have well-installed the package or please install the package again.

Thanks.

Hi, AsataLLL
https://drive.google.com/file/d/10XaZyvJxW6XFtiTuFdF5DNaiH9S_AB-H/view?usp=sharing

There are some error, when i flashing Xavier with JetPack installer.
The JetPack installer didn’t install CUDA/cuDNN

@artemisl, It looks like you are having trouble installing jetpack rather than the tensorflow. Is it persistent that if you try to flash a couple of times all of them fail to install cuda/cudnn?

Hi,

It looks like CUDA cannot be installed on your device.
Could you help to check the network functionality first?

Thanks.

Hi artemisl,
Your problem seems like some network setup problem. When you flashing Xavier with JetPack installer, there is a page that let you select the network card on the host with internet access, that is a serious step to make sure your Xavier has the right internet access. Hope it helps.

Thank you for everyone help me to solve the problem.

The problem is JetPack 4.1 DP can’t fully install all tensorflow all dependence. It needs to use apt-get install on Xavier’s device to install some library or package.

Does this work if you install miniconda on Jetson? And is the problem artemisl brought up a non-issue at this point?

Sorry that we don’t have an experience of it.
You can give it a try and file a topic if any problem.

Thanks.

Hi,

I try to follow post #1 to install tensorflow after flashing Xavier.

It got stuck at the message below:

Collecting h5py (from keras-applications>=1.0.6->tensorflow-gpu==1.12.0+nv19.1)
Downloading https://files.pythonhosted.org/packages/43/27/a6e7dcb8ae20a4dbf3725321058923fec262b6f7835179d78ccc8d98deec/h5py-2.9.0.tar.gz (287kB)
100% |████████████████████████████████| 296kB 5.4MB/s

Nothing happens after 100%… Can anyone help?

Thanks.

Regards,
Tianxiang

Hi,

The installation takes time.
Please wait and it will go next steps after several minutes.

Thanks.

Could you please provide a build of the tensorflow_cc.so library and associated headers so we can use TensorFlow in C++ as well?

Hi,

Sorry that we don’t provide TensorFlow C++ libraries due to the limited resource.
You can check the community for help.

Thanks.

I just install Jetpack4.1.1 on my nvidia xavier and then wanna install the tensorflow on the board.Thus I follow the official docunment:

https://docs.nvidia.com/deeplearning/dgx/install-tf-xavier/index.html

Unfortunately comfront some errors.
Firstly,I install Nvidia SDK Manager:
$ sudo apt install ./sdkmanager_0.9.11-3405_amd64.deb
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
sdkmanager:amd64 : Depends: libgconf-2-4:amd64 but it is not installable
Depends: libcanberra-gtk-module:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.

Then,
$ sudo apt install libgconf-2-4
libgconf-2-4 is already the newest version (3.2.6-4ubuntu1).
The following packages were automatically installed and are no longer required:
libdbusmenu-gtk4 libdbusmenu-qt5-2 libgsettings-qt1 liblockfile-bin
liblockfile1 libqt5sql5 libqt5sql5-sqlite lockfile-progs x11proto-dri2-dev
x11proto-gl-dev
Use ‘sudo apt autoremove’ to remove them.

The dependencies are exist,but I still couldn’t install SDK. Why?

hi all,

I am very sorry for late report the problem status.
I solve the Problem by check all network connect correct when reflash JetPack 4.1 DP
The JetPack installer will install CUDA/cuDNN

After that, the tensorflow can install correctly

Hello@artemisl,

Have u run into the problem below when u installed the tensorflow on Xavier:

$ pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v411 tensorflow-gpu==1.13.0rc0+nv19.2 --user

Traceback (most recent call last):
File “/usr/bin/pip3”, line 9, in
from pip import main
ImportError: cannot import name ‘main’

Due to this,I failed to install the tensorflow correctly.

Appreciate to get your reply.Thanks.

Hi,

Please try the change in this comment to fix the pip issue:
https://devtalk.nvidia.com/default/topic/1049922/jetson-agx-xavier/installing-python-packages-with-pip/post/5328614/#5328614

Thanks.

Hi AastaLLL,

One more trouble,

~$ pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v411 tensorflow-gpu==1.13.0rc0+nv19.2 --user
bash: pip3: command not found

~$ sudo apt autoremove libdbusmenu-gtk4 libdbusmenu-qt5-2 libgsettings-qt1 liblockfile-bin
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
libdbusmenu-gtk4 libdbusmenu-qt5-2 libgsettings-qt1 liblockfile-bin
liblockfile1 libqt5sql5 libqt5sql5-sqlite lockfile-progs x11proto-dri2-dev
x11proto-gl-dev

Hi,

pip3 can be installed by this command:

sudo apt-get install python3-pip

Thanks.