All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Support for unpickling torch
BFloat16Storage(PyTorchbfloat16values are converted to Gofloat32).
- Performance improvements (mostly involving better buffered reading, and new default capacities for maps and slices)
types.Dictis now implemented as a slice ofDictEntry, rather than a slice of pointers to it, to reduce extra allocations.- Test data has been regenerated with Python
3.10.9and PyTorch1.13.1.
- 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_backendwhen loading pytorch modules.
FrozenSetimplementation was modified, avoiding confusion withSet.- Replace build CI job with tests and coverage
Dicthas 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
- Unused method
List.Extend
- Modify GitHub Action steps
BuildandTestincluding all sub-packages.
- Initial implementation of
typespackage - Initial implementation of
picklepackage - Initial implementation of
pytorchpackage