STEllAR-GROUP / phylanx

An Asynchronous Distributed C++ Array Processing Toolkit
Boost Software License 1.0
75 stars 76 forks source link

hard_sigmoid operation fails to compile #1259

Closed taless474 closed 4 years ago

taless474 commented 4 years ago

Using Blaze and Blaze_Tensor heads, Phylanx master and the last stable HPX, I get this error on MSVC:

13>C:\Repos\vcpkg\installed\x64-windows\include\blaze\math\expressions\DVecDVecMapExpr.h(479,1): error C2440: 'return': cannot convert from 'Return' to 'double &' (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp)
15>The header hpx/runtime/get_os_thread_count.hpp     is deprecated, please include hpx/runtime.hpp instead
13>C:\Repos\vcpkg\installed\x64-windows\include\blaze\math\expressions\DVecDVecMapExpr.h(477): message : while compiling class template member function 'double &blaze::DVecDVecMapExpr<VT1,VT2,OP,false>::operator [](size_t) const'
13>        with
13>        [
13>            VT1=blaze::UniformVector<double,false,blaze::Group0>,
13>            VT2=blaze::DVecDVecAddExpr<blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::AlignedAllocator<double>,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>,blaze::UniformVector<double,false,blaze::Group0>,false>,
13>            OP=blaze::Min
13>        ] (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp)
13>C:\Repos\vcpkg\installed\x64-windows\include\blaze\math\expressions\DVecDVecMapExpr.h(479): message : see reference to function template instantiation 'double &blaze::DVecDVecMapExpr<VT1,VT2,OP,false>::operator [](size_t) const' being compiled
13>        with
15>The header hpx/runtime/get_os_thread_count.hpp     is deprecated, please include hpx/runtime.hpp instead
13>        [
13>            VT1=blaze::UniformVector<double,false,blaze::Group0>,
13>            VT2=blaze::DVecDVecAddExpr<blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::AlignedAllocator<double>,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>,blaze::UniformVector<double,false,blaze::Group0>,false>,
13>            OP=blaze::Min
13>        ] (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp)
13>C:\Repos\vcpkg\installed\x64-windows\include\blaze\math\expressions\DVecDVecMapExpr.h(1111): message : see reference to class template instantiation 'blaze::DVecDVecMapExpr<VT1,VT2,OP,false>' being compiled
13>        with
13>        [
13>            VT1=blaze::UniformVector<double,false,blaze::Group0>,
15>The header hpx/runtime/get_os_thread_count.hpp     is deprecated, please include hpx/runtime.hpp instead
15>The header hpx/runtime/get_os_thread_count.hpp     is deprecated, please include hpx/runtime.hpp instead
13>            VT2=blaze::DVecDVecAddExpr<blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::AlignedAllocator<double>,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>,blaze::UniformVector<double,false,blaze::Group0>,false>,
13>            OP=blaze::Min
13>        ] (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp)
13>C:\Repos\vcpkg\installed\x64-windows\include\blaze\math\expressions\DVecDVecMapExpr.h(1300): message : see reference to function template instantiation 'ReturnType blaze::map<blaze::UniformVector<double,false,blaze::Group0>,blaze::DVecDVecAddExpr<VT1,VT2,false>,false,blaze::Min>(const blaze::DenseVector<blaze::UniformVector<double,false,blaze::Group0>,false> &,const blaze::DenseVector<blaze::DVecDVecAddExpr<VT1,VT2,false>,false> &,OP)' being compiled
13>        with
15>The header hpx/runtime/get_os_thread_count.hpp     is deprecated, please include hpx/runtime.hpp instead
15>The header hpx/runtime/get_os_thread_count.hpp     is deprecated, please include hpx/runtime.hpp instead
13>        [
13>            VT1=blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::AlignedAllocator<double>,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>,
13>            VT2=blaze::UniformVector<double,false,blaze::Group0>,
13>            OP=blaze::Min
13>        ] (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp)
13>C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp(93): message : see reference to function template instantiation 'ReturnType blaze::min<blaze::UniformVector<double,false,blaze::Group0>,blaze::DVecDVecAddExpr<VT1,VT2,false>,false>(const blaze::DenseVector<blaze::UniformVector<double,false,blaze::Group0>,false> &,const blaze::DenseVector<blaze::DVecDVecAddExpr<VT1,VT2,false>,false> &)' being compiled
13>        with
13>        [
13>            VT1=blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::AlignedAllocator<double>,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>,
13>            VT2=blaze::UniformVector<double,false,blaze::Group0>
13>        ]
13>C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp(124): message : see reference to function template instantiation 'ReturnType phylanx::execution_tree::primitives::detail::hard_sigmoid<blaze::UniformVector<double,false,blaze::Group0>,blaze::UniformVector<double,false,blaze::Group0>,blaze::UniformVector<double,false,blaze::Group0>,blaze::UniformVector<double,false,blaze::Group0>,blaze::CustomVector<T,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<T,false,blaze::AlignedAllocator<T>,blaze::Group0>>>(const Ones &,const Zeros &,const Fifth &,const Halfs &,const Data &)' being compiled
13>        with
13>        [
13>            T=double,
13>            Ones=blaze::UniformVector<double,false,blaze::Group0>,
13>            Zeros=blaze::UniformVector<double,false,blaze::Group0>,
13>            Fifth=blaze::UniformVector<double,false,blaze::Group0>,
13>            Halfs=blaze::UniformVector<double,false,blaze::Group0>,
13>            Data=blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::AlignedAllocator<double>,blaze::Group0>>
13>        ]
hkaiser commented 4 years ago

@taless474 was this resolved?

taless474 commented 4 years ago

Yes. This was my bad. When I compared this to #1217 I realized I have saved the wrong commit.

taless474 commented 4 years ago

Parsa helped me realize that this problem still persists :/