Trait burn::tensor::MovedimArgs

pub trait MovedimArgs {
    // Required method
    fn into_dim_vec<const D: usize>(self) -> Vec<usize>;
}
Expand description

Trait used for movedim arguments

Required Methods§

fn into_dim_vec<const D: usize>(self) -> Vec<usize>

Converts into a set of dimensions Vec<usize> for the tensor.movedim() function

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl MovedimArgs for i32

§

fn into_dim_vec<const D: usize>(self) -> Vec<usize>

§

impl MovedimArgs for usize

§

fn into_dim_vec<const D: usize>(self) -> Vec<usize>

§

impl MovedimArgs for Vec<i32>

§

fn into_dim_vec<const D: usize>(self) -> Vec<usize>

§

impl MovedimArgs for Vec<usize>

§

fn into_dim_vec<const D: usize>(self) -> Vec<usize>

Implementors§