明明可以早点起 2017-09-05 11:08 采纳率: 0%
浏览 2631

源码编译tensorflow,遇到如下问题:试了一些方法,仍然ERROR

zmm@zmm-System-Product-Name:~/src/AI/tensorflow$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

ERROR: /home/zmm/src/AI/tensorflow/tensorflow/core/kernels/BUILD:2334:1: C++ compilation of rule '//tensorflow/core/kernels:svd_op' failed (Exit 1)
In file included from external/eigen_archive/Eigen/Core:452:0,
from external/eigen_archive/Eigen/QR:11,
from external/eigen_archive/Eigen/SVD:11,
from ./third_party/eigen3/Eigen/SVD:1,
from ./tensorflow/core/kernels/svd_op_impl.h:23,
from tensorflow/core/kernels/svd_op_complex128.cc:16:
external/eigen_archive/Eigen/src/Core/util/BlasUtil.h: In instantiation of 'struct Eigen::internal::conj_helper<__vector(8) double, std::complex, false, false>':
external/eigen_archive/Eigen/src/Jacobi/Jacobi.h:339:77: required from 'void Eigen::internal::apply_rotation_in_the_plane(Eigen::DenseBase&, Eigen::DenseBase&, const Eigen::JacobiRotation&) [with VectorX = Eigen::BlockEigen::Matrix<std::complex<double, -1, -1, 1, -1, -1>, 1, -1, true>; VectorY = Eigen::BlockEigen::Matrix<std::complex<double, -1, -1, 1, -1, -1>, 1, -1, true>; OtherScalar = double]'
external/eigen_archive/Eigen/src/Jacobi/Jacobi.h:282:40: required from 'void Eigen::MatrixBase::applyOnTheLeft(Eigen::Index, Eigen::Index, const Eigen::JacobiRotation&) [with OtherScalar = double; Derived = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>; Eigen::Index = long int]'
external/eigen_archive/Eigen/src/SVD/JacobiSVD.h:725:13: required from 'Eigen::JacobiSVD& Eigen::JacobiSVD::compute(const MatrixType&, unsigned int) [with MatrixType = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>; int QRPreconditioner = 2; Eigen::JacobiSVD::MatrixType = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>]'
external/eigen_archive/Eigen/src/SVD/JacobiSVD.h:548:14: required from 'Eigen::JacobiSVD::JacobiSVD(const MatrixType&, unsigned int) [with _MatrixType = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>; int QRPreconditioner = 2; Eigen::JacobiSVD::MatrixType = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>]'
external/eigen_archive/Eigen/src/SVD/BDCSVD.h:252:57: required from 'Eigen::BDCSVD<_MatrixType>& Eigen::BDCSVD::compute(const MatrixType&, unsigned int) [with _MatrixType = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>; Eigen::BDCSVD::MatrixType = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>]'
external/eigen_archive/Eigen/src/SVD/BDCSVD.h:137:12: required from 'Eigen::BDCSVD::BDCSVD(const MatrixType&, unsigned int) [with _MatrixType = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>; Eigen::BDCSVD::MatrixType = Eigen::Matrixstd::complex<double, -1, -1, 1, -1, -1>]'
./tensorflow/core/kernels/svd_op_impl.h:88:49: required from 'void tensorflow::SvdOp::ComputeMatrix(tensorflow::OpKernelContext*, const ConstMatrixMaps&, tensorflow::SvdOp::MatrixMaps*) [with Scalar = std::complex; tensorflow::SvdOp::ConstMatrixMaps = tensorflow::gtl::InlinedVector, -1, -1, 1, -1, -1>, 0, Eigen::Stride >, 4>; tensorflow::SvdOp::MatrixMaps = tensorflow::gtl::InlinedVectorEigen::Map<Eigen::Matrix<std::complex<double, -1, -1, 1, -1, -1>, 0, Eigen::Stride >, 4>]'
tensorflow/core/kernels/svd_op_complex128.cc:23:1: required from here
external/eigen_archive/Eigen/src/Core/util/BlasUtil.h:63:74: error: no type named 'ReturnType' in 'struct Eigen::ScalarBinaryOpTraits<
_vector(8) double, std::complex, Eigen::internal::scalar_product_op<__vector(8) double, std::complex > >'
typedef typename ScalarBinaryOpTraits::ReturnType Scalar;

FAILED: Build did NOT complete successfully

  • 写回答

1条回答 默认 最新

  • 元气少女缘结神 2019-07-03 17:53
    关注

    感觉是有些东西没有导致的,你可以参考 https://blog.csdn.net/wd1603926823/article/details/92843830

    评论

报告相同问题?

悬赏问题

  • ¥15 优质github账号直接兑换rmb,感兴趣伙伴可以私信
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)