安江
2017-09-05 11: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
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- Linux中安装tensorflow2.0出现如下问题
- linux
- tensorflow
- 3个回答
- 关于Mac下python pip版本问题以及pycharm安装python第三方库失败问题
- python
- 1个回答
- C++编译Tensorflow时出现 no such package '@icu//'no such package '@grpc//'这两个error是为什么呀?
- c++
- tensorflow
- 1个回答
- #Shell 脚本# awk: line 6: syntax error at or near [ awk: line 14: syntax error at or near [
- bash
- 1个回答
- ResourceExhaustedError: OOM when allocating tensor with shape[1024]
- gpu
- oom
- tensorflow
- 2个回答