2 lixiaolongjiequan LIXIAOLONGJIEQUAN 于 2017.09.05 19:08 提问

源码编译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

Csdn user default icon
上传中...
上传图片
插入图片