crnn
crnn copied to clipboard
‘TensorMustAlias’ is not a member of ‘thpp’
Hi,
I get this error. Any idea where I can look further? TIA.
./build_cpp.sh
mkdir: cannot create directory ‘build’: File exists
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/build
[ 25%] Building CXX object CMakeFiles/crnn.dir/init.cpp.o
[ 50%] Building CXX object CMakeFiles/crnn.dir/ctc.cpp.o
In file included from /usr/local/include/fblualib/LuaUtils.h:259:0,
from /home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:10:
/usr/local/include/fblualib/LuaUtils-inl.h: In function ‘folly::Optional<thpp::Tensor<T> > fblualib::luaGetTensor(lua_State*, int)’:
/usr/local/include/fblualib/LuaUtils-inl.h:91:30: error: ‘TensorMustAlias’ is not a member of ‘thpp’
opt = thpp::Tensor<T>(p, thpp::TensorMustAlias());
^
/usr/local/include/fblualib/LuaUtils-inl.h: In function ‘thpp::Tensor<T> fblualib::luaGetTensorChecked(lua_State*, int)’:
/usr/local/include/fblualib/LuaUtils-inl.h:103:29: error: ‘TensorMustAlias’ is not a member of ‘thpp’
return thpp::Tensor<T>(p, thpp::TensorMustAlias());
^
/usr/local/include/fblualib/LuaUtils-inl.h: In instantiation of ‘void fblualib::luaPushTensor(lua_State*, thpp::Tensor<T>) [with NT = float; lua_State = lua_State]’:
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:150:28: required from ‘int {anonymous}::forwardBackward(lua_State*) [with T = float; lua_State = lua_State]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:200:16: required from ‘const luaL_Reg {anonymous}::Registerer<float>::functions_ [3]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:209:24: required from ‘static void {anonymous}::Registerer<T>::registerFunctions(lua_State*) [with T = float; lua_State = lua_State]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:216:24: required from here
/usr/local/include/fblualib/LuaUtils-inl.h:122:17: error: ‘class thpp::Tensor<float>’ has no member named ‘moveAsTH’
luaT_pushudata(L, tensor.moveAsTH(), thpp::Tensor<T>::kLuaTypeName);
^
/usr/local/include/fblualib/LuaUtils-inl.h: In instantiation of ‘void fblualib::luaPushTensor(lua_State*, thpp::Tensor<T>) [with NT = int; lua_State = lua_State]’:
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:184:28: required from ‘int {anonymous}::naiveDecoding(lua_State*) [with T = float; lua_State = lua_State]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:200:16: required from ‘const luaL_Reg {anonymous}::Registerer<float>::functions_ [3]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:209:24: required from ‘static void {anonymous}::Registerer<T>::registerFunctions(lua_State*) [with T = float; lua_State = lua_State]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:216:24: required from here
/usr/local/include/fblualib/LuaUtils-inl.h:122:17: error: ‘class thpp::Tensor<int>’ has no member named ‘moveAsTH’
/usr/local/include/fblualib/LuaUtils-inl.h: In instantiation of ‘void fblualib::luaPushTensor(lua_State*, thpp::Tensor<T>) [with NT = double; lua_State = lua_State]’:
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:150:28: required from ‘int {anonymous}::forwardBackward(lua_State*) [with T = double; lua_State = lua_State]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:200:16: required from ‘const luaL_Reg {anonymous}::Registerer<double>::functions_ [3]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:209:24: required from ‘static void {anonymous}::Registerer<T>::registerFunctions(lua_State*) [with T = double; lua_State = lua_State]’
/home/ubuntu/textboxes++/TextBoxes_plusplus/crnn/src/cpp/ctc.cpp:217:25: required from here
/usr/local/include/fblualib/LuaUtils-inl.h:122:17: error: ‘class thpp::Tensor<double>’ has no member named ‘moveAsTH’
CMakeFiles/crnn.dir/build.make:86: recipe for target 'CMakeFiles/crnn.dir/ctc.cpp.o' failed
make[2]: *** [CMakeFiles/crnn.dir/ctc.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/crnn.dir/all' failed
make[1]: *** [CMakeFiles/crnn.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
cp: cannot stat '*.so': No such file or directory
Nobody knows what could be the issue? I tried every solution on the internet but couldn't get through this.
got the same error as you @codecolony do you have some solution?
@johnlanbor - I had to give up unfortunately. Still unresolved for me. Seems like things work only with a particular Ubuntu version. So, check on that. I couldn't afford to try it on another version.