hughperkins / pytorch

Python wrappers for torch and lua
BSD 2-Clause "Simplified" License
431 stars 70 forks source link

How to import torch pkg.classe_name into python #40

Open basavaraj-hampiholi opened 6 years ago

basavaraj-hampiholi commented 6 years ago

Hey,

I am facing problem in accessing the classes of torch in python. Here is an example,

local object = {}

function object.func(self, arg1, arg2) print(arg1, arg2) end

How to access this function named 'func' in my python code using this library(PyTorchHelpers). Please help!!!

Thanks, Basavaraj