Skip to content

move the tensor module under a new collection module in the Python client#75

Open
code-tc wants to merge 1 commit into
mainfrom
chore/collection-module
Open

move the tensor module under a new collection module in the Python client#75
code-tc wants to merge 1 commit into
mainfrom
chore/collection-module

Conversation

@code-tc

@code-tc code-tc commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

This change prepares to support the BTree and Table collection types, which will be defined alongside Tensor in the collection module

@AlekseiChirkovVention AlekseiChirkovVention 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.

LGTM, just two minor comments

assert reduced.values == [3.0, 7.0]

transpose_source = tc.Tensor(native=dense_u64([2, 3, 2], list(range(12))))
transpose_source = tc.Tensor(native=dense_f64([2, 3, 2], [float(v) for v in range(12)]))

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.

Tensor decoding still explicitly supports u64, but this removes the only end-to-end transpose assertion for that dtype. Would you mind keeping the u64 case or add a separate u64 transpose test

Comment thread py/README.md
Comment on lines +185 to +187
`Tensor` now lives under `tinychain.collection` (`tc.collection.Tensor`), with
`Tensor` now lives under `tinychain.collection` (`tc.collection.Tensor`), and `tc.Tensor` is the canonical shorthand.

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.

repeats “Tensor now lives under tinychain.collection” on two consecutive lines; remove the duplicate fragment.

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.

3 participants