Skip to content

import class from arbitrary torch package #31

@gexarcha

Description

@gexarcha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions