Skip to content

Conversation

@ryanmrichard
Copy link
Member

Is this pull request associated with an issue(s)?
No.

Description
This PR exposes the Tensor class to Python. The majority of the C++ API is not available at this time, but what you can do is:

tw_tensor = python_bindings_to_cxx_function_returning_tensor()
tensor.   = np.array(tw_tensor)

to convert a TensorWrapper Tensor object into a NumPy array. This should be sufficient for looking at tensors from Python.

TODOs
None if this passes CI.

@ryanmrichard ryanmrichard self-assigned this Feb 19, 2025
@ryanmrichard ryanmrichard merged commit 5f5f7fe into master Feb 19, 2025
9 checks passed
@ryanmrichard ryanmrichard deleted the python branch February 19, 2025 19:32
@jwaldrop107
Copy link
Member

🚀 [bumpr] Bumped! New version:v0.0.46 Changes:v0.0.45...v0.0.46

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