Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import class from arbitrary torch package #31

Open
gexarcha opened this issue Jan 16, 2017 · 0 comments
Open

import class from arbitrary torch package #31

gexarcha opened this issue Jan 16, 2017 · 0 comments

Comments

@gexarcha
Copy link

gexarcha commented Jan 16, 2017

Can I import an arbitrary lua package and use one of its classes in python?
I have been trying to load the file from the installation directory directly but it doesn't seem to load any of the methods of the class.

myclass =PyTorchHelpers.load_lua_class('/home/user/torch/install/share/lua/5.1/mypackage/init.lua','myclass')

Any help would be appreciated here.

@gexarcha gexarcha changed the title import class from arbirary torch package import class from arbitrary torch package Jan 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant