在Jetson TX2上构建TensorFlow

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Jetson TX2上构建TensorFlow相关的知识,希望对你有一定的参考价值。

我正在尝试this tutorial,但出现一些编译错误。有人可以给我一些建议吗?

我的环境是...

  • Ubuntu 16.04
  • JetsonTX2
  • 架构aarch64
  • JetPack 3.2
  • CUDA 9.0
  • cuDNN 7.0.5

我执行了以下命令:

$ sudo -H bash BuildTensorflow.sh -b r1.6

错误是...

    swapon: /home/nvidia/JetsonTFBuild/swapfile.swap: swapon failed: Device or resource busy
    Looks like Swap not desired or is already in use
    dirname: missing operand
    Try 'dirname --help' for more information.
    dirname: missing operand
    Try 'dirname --help' for more information.
    PYTHON_BIN_PATH=/usr/bin/python2
    GCC_HOST_COMPILER_PATH=/usr/bin/gcc
    CUDA_TOOLKIT_PATH=
    TF_CUDA_VERSION=9.0
    TF_CUDA_COMPUTE_CAPABILITIES=5.3,6.2
    CUDNN_INSTALL_PATH=/usr/lib/aarch64-linux-gnu
    TF_CUDNN_VERSION=7.0.5
    ./tf_build.sh: line 20: /home/nvidia/JetsonTFBuild: Is a directory
    /usr/bin/python2: can't open file 'configure.py': [Errno 2] No such file or directory
    error: patch failed: tensorflow/contrib/lite/kernels/internal/BUILD:21
    error: tensorflow/contrib/lite/kernels/internal/BUILD: patch does not apply
    INFO: Options provided by the client:
            Inherited 'common' options: --isatty=1 --terminal_columns=80
    INFO: Reading rc options for 'build' from /home/nvidia/JetsonTFBuild/tensorflow/tools/bazel.rc:
            'build' options: --define framework_shared_object=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --define=grpc_no_ares=true --spawn_strategy=standalone --genrule_strategy=standalone -c opt
    ERROR: Config value opt is not defined in any .rc file
    Tue Oct 9 20:34:03 JST 2018 : === Using tmpdir: /tmp/tmp.swhwrsSoaA
    cp: cannot stat 'bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow/tensorflow': No such file or directory
答案

请遵循this link,它提供了分步说明来安装Jetson TX2Tensorflow。希望对您有帮助!

以上是关于在Jetson TX2上构建TensorFlow的主要内容,如果未能解决你的问题,请参考以下文章

在 JETSON TX2 上部署 YoloV3

我如何在Jetson TX2上自动运行Python脚本?

在Jetson TX2上安装caffe和PyCaffe

在Jetson TX2上捕获显示摄像头视频

在Jetson TX2上安装OpenCV(3.4.0)

jetson TX2