twitter-archive / torch-ipc

A set of primitives for parallel computation in Torch
Apache License 2.0
95 stars 28 forks source link

Serialize tables having metatables #31

Closed nicholas-leonard closed 7 years ago

nicholas-leonard commented 7 years ago

This PR adds functionality to serialize tables having metatables. This includes objects instantiated with classes created via torch.class(). As expected, the metatable is NOT serialized. Includes unit tests for serializing objects from classes contained in both local and global modules.