lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

in Lua you can load chunks of data from strings using:

The problem in your case will be the format of your serialised data, which you you need to transform from a Python-friendly to in a Lua-friendly format, maybe using some intermediary format.



On Mon, Feb 2, 2015 at 10:47 PM, Sravan Kumar Reddy Javaji <> wrote:
Hello Everyone,

I have an object which was serialized to string using numpy. Normally to deserialize the object we use numpy's "fromstring" method in python. 

Is there anyway that we can use these serialized numpy objects in Lua. I mean what is the equivalent method for numpy's "fromstring" method in Tensor. 

I referred the below link and found that there is no specific equivalent for "fromstring" method.

Does it mean we cannot implement it or is it difficult to implement.

Please let me know your thoughts on this. Thanks for your time and help.