-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Poetry configuration & custom serialization function support
Instead of using `pip` with `requirements*.txt` files and `setup.py`, this project has changed to use `poetry` and its single `pyproject.toml` config file. This simplifies environment & dependency management and enables the project to be easily published on PyPI. The `serialize` and `deserialize` functions now support user-defined data-type serialization functions. Both functions accept an optional mapping of `type -> handler`: if a data type is encountered that **exactly maches** a key (type) then its value (serialization function) is used instead of the usual built-in logic. This new custom serialization feature has new tests that show its use serializing multi-dimensional `numpy` arrays and `torch` tensors.
- Loading branch information
1 parent
ba68bd6
commit cc46d5f
Showing
13 changed files
with
1,125 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
3.8.3 | ||
3.7.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.