Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Make tensor.Tensor implement tensor_utils.TensorLike #274

Open
owenhilyard opened this issue Dec 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@owenhilyard
Copy link

What is your request?

Please make tensor.Tensor implement the tensor_utils.TensorLike trait. As far as I can tell it already implements the required functions, but it does not implement this trait as of mojo 25.1.0.dev2024121705 (67a9f701)

What is your motivation for this change?

At the moment, there is no way to abstract over things that are tensor like including tensors without writing overloads, since tensor_utils.TensorLike currently only includes tensor-like constructs which are themselves not tensors. This is surprising behavior to me, since I had assumed that tensors are tensor-like.

Any other details?

No response

@owenhilyard owenhilyard added the enhancement New feature or request label Dec 20, 2024
Copy link

Thanks for the suggestion! We will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants