Call torch7 (Lua) function from python?

405 views
Skip to first unread message

salem ameen

unread,
Nov 15, 2015, 2:37:22 PM11/15/15
to torch7
I have a program is written in python and I have model ConvNet trained using Toch7. I would like to call forward and backpro to the model from python program as I find difficult and hard to write it again in lua.

Any idea please?

soumith

unread,
Nov 15, 2015, 4:13:04 PM11/15/15
to torch7 on behalf of salem ameen

On Sun, Nov 15, 2015 at 2:37 PM, salem ameen via torch7 <torch7+APn2wQft_9a3mk9tdIYaWRArC...@googlegroups.com> wrote:
I have a program is written in python and I have model ConvNet trained using Toch7. I would like to call forward and backpro to the model from python program as I find difficult and hard to write it again in lua.

Any idea please?

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

salem ameen

unread,
Nov 15, 2015, 5:16:36 PM11/15/15
to torch7
Many thanks


On Sunday, 15 November 2015 21:13:04 UTC, smth chntla wrote:

Wei Ouyang

unread,
Apr 27, 2016, 1:16:49 PM4/27/16
to torch7
Hey, now I think you have a much better solution, it's lutorpy https://github.com/imodpasteur/lutorpy .

Different from pytorch, you have a lua engine in python, so it's more flexible to import any lua module and code in python, and it's easy to use and flexible. 
you can convert between numpy and torch tensor easily and very fast. For pytorch, the module you can use is still limited.
Reply all
Reply to author
Forward
0 new messages