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
(PyTorchbfloat16
values are converted to Gofloat32
).
- Performance improvements (mostly involving better buffered reading, and new default capacities for maps and slices)
types.Dict
is 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.9
and 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_backend
when loading pytorch modules.
FrozenSet
implementation was modified, avoiding confusion withSet
.- 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
- Unused method
List.Extend
- Modify GitHub Action steps
Build
andTest
including all sub-packages.
- Initial implementation of
types
package - Initial implementation of
pickle
package - Initial implementation of
pytorch
package