Trait tch::Shape

source ·
pub trait Shape {
    // Required method
    fn to_shape(&self) -> Box<[i64]>;
}

Required Methods§

source

fn to_shape(&self) -> Box<[i64]>

Implementations on Foreign Types§

source§

impl Shape for &[i64]

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for (i64, i64)

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for (i64, i64, i64)

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for (i64, i64, i64, i64)

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for (i64,)

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for i32

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for i64

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for ()

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for usize

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for [i64; 0]

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for [i64; 1]

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for [i64; 2]

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for [i64; 3]

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for [i64; 4]

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for [i64; 5]

source§

fn to_shape(&self) -> Box<[i64]>

source§

impl Shape for [i64; 6]

source§

fn to_shape(&self) -> Box<[i64]>

Implementors§