代码之家  ›  专栏  ›  技术社区  ›  Ashok Bugude

“half”不是“Eigen”的成员

  •  2
  • Ashok Bugude  · 技术社区  · 7 年前

    任务:

    基本上希望在Android NDK和内置opencl tensorflow库的帮助下在移动GPU上运行)

    采取的步骤:
    https://bitbucket.org/benoitsteiner/eigen-opencl 并使用bazel构建TensorFlow。

    INFO: Found 1 target...
    ERROR: /home/ashok/Ashok/tensorflow-1.0.1/tensorflow/core/BUILD:814:1: C++ compilation of rule '//tensorflow/core:android_tensorflow_lib_lite' failed (Exit 1)
    In file included from ./tensorflow/core/framework/allocator.h:25:0,
    from ./tensorflow/core/framework/op_kernel.h:22,
    from ./tensorflow/core/util/guarded_philox_random.h:19,
    from tensorflow/core/util/guarded_philox_random.cc:16:
    ./tensorflow/core/framework/type_traits.h:69:52: error: 'half' is not a member of 'Eigen'
    std::is_trivial::value || std::is_same<T, Eigen::half>::value ||
    ^
    ./tensorflow/core/framework/type_traits.h:69:52: error: 'half' is not a member of 'Eigen'
    ./tensorflow/core/framework/type_traits.h:69:63: error: template argument 2 is invalid
    std::is_trivial::value || std::is_same<T, Eigen::half>::value ||
    ^
    Target //tensorflow/examples/android:tensorflow_demo failed to build
    

    请帮助解决问题

    1 回复  |  直到 7 年前