lucifer1004 commented on PR #813: URL: https://github.com/apache/tvm-ffi/pull/813#issuecomment-5862706306
Added fe78cb0: `impl TryFrom<AnyView> for TensorView`, converting from a `DLTensor*` or a tensor object as C++ `AnyView::cast<TensorView>` does. `try_as::<TensorView>()` is unchanged and stays aligned with C++ `as`, which accepts only a `DLTensor*`. There is no `TryFrom<Any>`, matching C++ `TensorView` not supporting moves. Without this, a Rust caller holding an `AnyView` of a tensor object had no public way to get a view: `TryFromTemp` is documented as not for direct use. The description is updated. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
