torch / demos

Demos and tutorials around Torch7.
355 stars 301 forks source link

How to communicate between torch and some other program language? #55

Open hfxunlp opened 7 years ago

hfxunlp commented 7 years ago

Torch and it's extension is very good for design, train and test models, It is convenient and fast, but after all this procedure, I need to put my models into services, how could I communicate between torch and some other languages, like java, python, C#, etc.

hfxunlp commented 7 years ago

It is not easy to design UI with Lua, I try to communicate between torch and C# with LuaSocket, but get into trouble now.

hfxunlp commented 7 years ago

I hope there could be a package that can easily communicate between torch and another popular language like python or Java, It is easy to communicate between python or Java with the other language.

hfxunlp commented 7 years ago

I try to use json and socket to communicate torch with C# and python, but both get into trouble, because I can not deal with multi-thread in a proper way with luasocket, I'm trying to use luasocketevent now.