Closed taless474 closed 4 years ago
It seems like the recent changes in Blaze broke hard_sigmoid primitive of Phylanx
9>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) 9>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' 9> with 9> [ 9> VT1=blaze::UniformVector<double,false,blaze::Group0>, 9> VT2=blaze::DVecDVecAddExpr<blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>,blaze::UniformVector<double,false,blaze::Group0>,false>, 9> OP=blaze::Min 9> ] (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp) 9>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 9> with 9> [ 9> VT1=blaze::UniformVector<double,false,blaze::Group0>, 9> VT2=blaze::DVecDVecAddExpr<blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>,blaze::UniformVector<double,false,blaze::Group0>,false>, 9> OP=blaze::Min 9> ] (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp) 9>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 9> with 9> [ 9> VT1=blaze::UniformVector<double,false,blaze::Group0>, 9> VT2=blaze::DVecDVecAddExpr<blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>,blaze::UniformVector<double,false,blaze::Group0>,false>, 9> OP=blaze::Min 9> ] (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp) 9>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 9> with 9> [ 9> VT1=blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>, 9> VT2=blaze::UniformVector<double,false,blaze::Group0>, 9> OP=blaze::Min 9> ] (compiling source file C:\Repos\phylanx\src\plugins\keras_support\hard_sigmoid_operation.cpp) 9>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 9> with 9> [ 9> VT1=blaze::DVecDVecMultExpr<blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::Group0>>,blaze::UniformVector<double,false,blaze::Group0>,false>, 9> VT2=blaze::UniformVector<double,false,blaze::Group0> 9> ] 9>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::Group0>>>(const Ones &,const Zeros &,const Fifth &,const Halfs &,const Data &)' being compiled 9> with 9> [ 9> T=double, 9> Ones=blaze::UniformVector<double,false,blaze::Group0>, 9> Zeros=blaze::UniformVector<double,false,blaze::Group0>, 9> Fifth=blaze::UniformVector<double,false,blaze::Group0>, 9> Halfs=blaze::UniformVector<double,false,blaze::Group0>, 9> Data=blaze::CustomVector<double,blaze::aligned,blaze::padded,false,blaze::Group0,blaze::DynamicVector<double,false,blaze::Group0>> 9> ] 9>Done building project "keras_support_primitive.vcxproj" -- FAILED.
This is resolved in the newer versions of Blaze.
It seems like the recent changes in Blaze broke hard_sigmoid primitive of Phylanx