tensorflow / tensorflow

An Open Source Machine Learning Framework for Everyone

Home Page:https://tensorflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

模板类 TensorContractionBlocking 的模板参数数量不正确

flh0923 opened this issue · comments

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

TF1.13.2

Custom code

Yes

OS platform and distribution

ubuntu18.04

Mobile device

ubuntu18.04

Python version

2.7

Bazel version

0.19.2

GCC/compiler version

7

CUDA/cuDNN version

cuda10,cudnn7

GPU model and memory

1050

Current behavior?

在编译segnetm时候出现错误

Standalone code to reproduce the issue

#set (EIGEN3_INCLUDE_DIR "/home/hjx/.cache/bazel/_bazel_hjx/f43d7462b7259647736d249f2d5ed079/external/eigen_archive")
set( LIBS 
${OpenCV_LIBS} 
${EIGEN3_LIBS}

${Pangolin_LIBRARIES}
${PCL_LIBRARIES}
${OCTOMAP_LIBRARIES}
${PROJECT_SOURCE_DIR}/../../../Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/../../../Thirdparty/g2o/lib/libg2o.so
${PROJECT_SOURCE_DIR}/../../../build/libmyORB_SLAM2_PointMap_SegNetM.so
/usr/lib/x86_64-linux-gnu/libglog.so
-lboost_system
${PROJECT_SOURCE_DIR}/../../../Examples/myROS/myORB_SLAM2_PointMap_SegNetM/libsegmentation/build/libmysegmentation.so
)

add_definitions( ${PCL_DEFINITIONS} )
link_directories( ${PCL_LIBRARY_DIRS} )

rosbuild_add_executable(myTUM
myros_tum_realtime.cc
)

target_link_libraries(myTUM
${LIBS}
)

Relevant log output

/home/flh/tensorflow-1.13.2/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/MatMatProductAVX2.h:162:38: error: ‘void Eigen::internal::operator()(Eigen::QInt16*, const DataMapper&, Index, Index, Index, Index)’ must be a nonstatic member function
            Index stride, Index offset) {
                                      ^
/home/flh/tensorflow-1.13.2/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/MatMatProductAVX2.h:549:24: error: wrong number of template arguments (5, should be at least 3)
     Index, ShardingType> {
                        ^

home/flh/tensorflow-1.13.2/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/MatMatProductAVX2.h:49:76: error: wrong number of template arguments (5, should be at least 3)
 class TensorContractionBlocking<QInt16, QInt16, QInt16, Index, ShardingType> {
                                                                            ^
In file included from /usr/include/eigen3/unsupported/Eigen/CXX11/Tensor:112:0,
commented

Hi @flh0923 ,

I am sorry to say that TF1.x versions are not supported now. Please upgrade to latest TF versions.