明明可以早点起 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 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置