mnn::tensor

Trait AsTensorShape

source
pub trait AsTensorShape {
    // Required method
    fn as_tensor_shape(&self) -> TensorShape;
}
Expand description

A trait to convert any array-like type to a tensor shape

Required Methods§

source

fn as_tensor_shape(&self) -> TensorShape

Convert the array-like type to a tensor shape

Implementors§