pub trait AsMultiArray {
// Required method
fn as_ml_multi_array(&self) -> &Retained<MLMultiArray>;
}Expand description
Trait for types that can be used as prediction inputs.
Implemented by both BorrowedTensor and OwnedTensor.
Required Methods§
fn as_ml_multi_array(&self) -> &Retained<MLMultiArray>
Implementors§
impl AsMultiArray for BorrowedTensor<'_>
Available on Apple only.
impl AsMultiArray for OwnedTensor
Available on Apple only.