Skip to main content

AsMultiArray

Trait AsMultiArray 

Source
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§

Implementors§

Source§

impl AsMultiArray for BorrowedTensor<'_>

Available on Apple only.
Source§

impl AsMultiArray for OwnedTensor

Available on Apple only.