You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to use weight-init.lua in my project and would prefer to use it in a clean way, e.g. by placing it in the search path of th.
To this end, I created a directory named "weight-init" under /extra and copied the contents of torch-toolbox/Weight-Init into it and made appropriate changes to /extra/CMakeLists.txt and added /extra/weight-init/CMakeLists.txt`
But, "weight-init.lua" is nowhere to be seen in th's search path,
th> require('weight-init')(1, 'xavier_caffe')
...user/Software/torch/install/share/lua/5.1/trepl/init.lua:389: module 'weight-init' not found:No LuaRocks module found for weight-init
no field package.preload['weight-init']
no file '/home/user/.luarocks/share/lua/5.1/weight-init.lua'
no file '/home/user/.luarocks/share/lua/5.1/weight-init/init.lua'
no file '/home/user/Software/torch/install/share/lua/5.1/weight-init.lua'
no file '/home/user/Software/torch/install/share/lua/5.1/weight-init/init.lua'
no file './weight-init.lua'
no file '/home/user/Software/torch/install/share/luajit-2.1.0-beta1/weight-init.lua'
no file '/usr/local/share/lua/5.1/weight-init.lua'
no file '/usr/local/share/lua/5.1/weight-init/init.lua'
no file '/home/user/.luarocks/lib/lua/5.1/weight-init.so'
no file '/home/user/Software/torch/install/lib/lua/5.1/weight-init.so'
no file '/home/user/Software/torch/install/lib/weight-init.so'
no file './weight-init.so'
no file '/usr/local/lib/lua/5.1/weight-init.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
...user/Software/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
[string "_RESULT={require('weight-init')(1, 'xavier_ca..."]:1: in main chunk
[C]: in function 'xpcall'
...user/Software/torch/install/share/lua/5.1/trepl/init.lua:661: in function 'repl'
...ware/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
[C]: at 0x00406651
What am I missing in CMakeLists ? Or is there another way access this function in a clean way ?
The text was updated successfully, but these errors were encountered:
I need to use weight-init.lua in my project and would prefer to use it in a clean way, e.g. by placing it in the search path of
th
.To this end, I created a directory named "weight-init" under
/extra
and copied the contents oftorch-toolbox/Weight-Init
into it and made appropriate changes to/extra/CMakeLists.txt
and added /extra/weight-init/CMakeLists.txt`But, "weight-init.lua" is nowhere to be seen in
th
's search path,What am I missing in CMakeLists ? Or is there another way access this function in a clean way ?
The text was updated successfully, but these errors were encountered: