明明可以早点起 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 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)