forked from scoder/lupa
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
lua file works fine
require "torch"
require "nn"
require "nngraph"
require "optim"
package.path = '/root/runtime/SROM/srom_torch_model.lua;' .. package.path
require "srom_torch_model"
model = Torch_model.new('./')
print(model)python3 file doesn't work
import lutorpy as lua
require("torch")
require("nn")
require("nngraph")
require("optim")
package.path = '/root/runtime/SROM/srom_torch_model.lua;' + package.path
require("srom_torch_model")
model = Torch_model.new("./")
print(model)Throws the error:
File "test.py", line 9, in
model = Torch_model.new("./")
NameError: name 'Torch_model' is not defined
Any idea about this? The srom_torch_model is a customized lua model. Thanks
Metadata
Metadata
Assignees
Labels
No labels