[Feature Request] Make tensor.Tensor
implement tensor_utils.TensorLike
#274
Labels
enhancement
New feature or request
tensor.Tensor
implement tensor_utils.TensorLike
#274
What is your request?
Please make
tensor.Tensor
implement thetensor_utils.TensorLike
trait. As far as I can tell it already implements the required functions, but it does not implement this trait as ofmojo 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
The text was updated successfully, but these errors were encountered: