Gopickle Versions Save

Go library for loading Python's data serialized with pickle and PyTorch module files.

v0.3.0

5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/nlpodyssey/gopickle/compare/v0.2.0...v0.3.0

v0.2.0

1 year ago

Added

  • Support for unpickling torch BFloat16Storage (PyTorch bfloat16 values are converted to Go float32).

Changed

  • Performance improvements (mostly involving better buffered reading, and new default capacities for maps and slices)
  • types.Dict is now implemented as a slice of DictEntry, rather than a slice of pointers to it, to reduce extra allocations.
  • Test data has been regenerated with Python 3.10.9 and PyTorch 1.13.1.

v0.1.0

3 years ago

Added

  • More and better documentation
  • OrderedDict.MustGet()
  • Dict.MustGet()
  • pytorch.LoadWithUnpickler() which allows loading PyTorch modules using a custom unpickler.
  • Handle legacy method torch.nn.backends.thnn._get_thnn_function_backend when loading pytorch modules.

Changed

  • FrozenSet implementation was modified, avoiding confusion with Set.
  • Replace build CI job with tests and coverage
  • Dict has been reimplemented using a slice, instead of a map, because in Go not all types can be map's keys (e.g. slices).
  • Use Go version 1.15

v0.0.1-alpha.1

3 years ago

Fixed

  • Modify GitHub Action steps Build and Test including all sub-packages.

v0.0.1-alpha.0

3 years ago

Added

  • Initial implementation of types package
  • Initial implementation of pickle package
  • Initial implementation of pytorch package