Trait mnn::tensor::TensorType

source ·
pub trait TensorType: Sealed {
    type H;

    // Required methods
    fn owned() -> bool;
    fn host() -> bool;

    // Provided methods
    fn borrowed() -> bool { ... }
    fn device() -> bool { ... }
}

Required Associated Types§

source

type H

Required Methods§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<H: HalideType> TensorType for Device<H>

§

type H = H

source§

impl<H: HalideType> TensorType for Host<H>

§

type H = H

source§

impl<T: TensorType> TensorType for Dyn<T>

§

type H = <T as TensorType>::H

source§

impl<T: TensorType> TensorType for Ref<'_, T>

§

type H = <T as TensorType>::H

source§

impl<T: TensorType> TensorType for RefMut<'_, T>

§

type H = <T as TensorType>::H