< >
Home » TX2入门教程软件篇 » TX2入门教程软件篇-安装TensorFlow1.13.1(jetpack3.3)

TX2入门教程软件篇-安装TensorFlow1.13.1(jetpack3.3)

TX2入门教程软件篇-安装TensorFlow(jetpack3.3)

说明:

  • 介绍如何在jetpack3.3版本下TensorFlow 版本: 1.13.1
  • 测试环境:tx2开发板jetpack3.3完整刷机安装
  • 使用 pip3是Python 3.5版

步骤:

  • 根据如下脚本一步步安装
# install prerequisites
$ sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev

# install and upgrade pip3
$ sudo apt-get install python3-pip
$ sudo pip3 install -U pip

# install the following python packages
$ sudo pip3 install -U numpy grpcio absl-py py-cpuinfo psutil portpicker six mock requests gast h5py astor termcolor protobuf keras-applications keras-preprocessing wrapt google-pasta

# install the latest version of TensorFlow
$ sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v33 tensorflow-gpu
  • 正常安装完之后,即可安装完成

测试:

  • 查看Tensorflow版本
ubuntu@AiROS:~/dl$ python3
>>> import tensorflow
>>> print(tensorflow.__version__)
1.14.0
  • 输出Hello, TensorFlow
ubuntu@AiROS:~/dl$ python3
>>> import tensorflow as tf
>>> hello = tf.constant(‘Hello, TensorFlow!’)
>>> sess = tf.Session()
>>> print(sess.run(hello))
b'hello, Tensorflow!'

参考:

  • https://elinux.org/Jetson_Zoo
  • Website: https://tensorflow.org
  • Source: https://github.com/tensorflow/tensorflow

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: tx2入门教程软件篇