Trait burn_tensor::ReshapeArgs

source ·
pub trait ReshapeArgs<const D2: usize> {
    // Required method
    fn into_shape<B: Backend, const D: usize, K: BasicOps<B>>(
        self,
        tensor: &Tensor<B, D, K>,
    ) -> Shape<D2>;
}
Expand description

Trait used for reshape arguments.

Required Methods§

source

fn into_shape<B: Backend, const D: usize, K: BasicOps<B>>( self, tensor: &Tensor<B, D, K>, ) -> Shape<D2>

Converts to a shape.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<const D2: usize> ReshapeArgs<D2> for [i32; D2]

source§

fn into_shape<B: Backend, const D: usize, K: BasicOps<B>>( self, tensor: &Tensor<B, D, K>, ) -> Shape<D2>

source§

impl<const D2: usize> ReshapeArgs<D2> for [usize; D2]

source§

fn into_shape<B: Backend, const D: usize, K: BasicOps<B>>( self, tensor: &Tensor<B, D, K>, ) -> Shape<D2>

Implementors§

source§

impl<const D2: usize> ReshapeArgs<D2> for Shape<D2>