torch7跑mnist例子出現No LuaRocks module found for weight-init問題

   第一次跑torch7的例子,開始從經典的mnist數據集入手,參考的是這篇博客,但是在運行的過程中出現

/torch/install/share/lua/5.1/trepl/init.lua:389: module 'weight-init' not found:No LuaRocks module found for weight-init

這樣的問題,最後在網上找到了一個提供該模塊的地址。下載地址

    最後將下載到的文件放在lua模塊的搜索路徑下面即可。lua模塊的搜索路徑的查看方法:

torch環境下運行:

print(package.path)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章