Skip to content

Introduce TensorTreeIO and reorganize tensor tree - #137

Merged
marcelluethi merged 5 commits into
dimwit-dev:mainfrom
marcelluethi:tensortree-io
Aug 3, 2026
Merged

Introduce TensorTreeIO and reorganize tensor tree#137
marcelluethi merged 5 commits into
dimwit-dev:mainfrom
marcelluethi:tensortree-io

Conversation

@marcelluethi

Copy link
Copy Markdown
Contributor

This PR is split in 2 commit (which should be looked at separately when reviewing).
The first moves tensor tree related files into a tensortree package. It currently is in autodiff, which is not the appropriate place, as tensortrees started to be an important abstraction throughout dimwit.
The second PR adds a TensorTreeIO object, which allows to serialize a tensor tree. A default implementation is provided that uses Python pkl. This choice was mainly done because it is simple and does not introduce new dependencies. The definition makes it possible for libraries that build on it to use other serialization formats (zarr, hdf5, ...).

Introduced mechanism to serialize a tensor tree. The default implementation is pkl.
@marcelluethi
marcelluethi requested a review from benikm91 August 1, 2026 14:58

@benikm91 benikm91 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks very good. I like the TensorFormat abstraction and Pickle default implementation.

@benikm91 benikm91 mentioned this pull request Aug 2, 2026
@marcelluethi
marcelluethi merged commit 762fcfb into dimwit-dev:main Aug 3, 2026
1 check passed
@benikm91 benikm91 mentioned this pull request Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants