Trait dfdx::tensor_ops::PermuteTo
source · pub trait PermuteTo: HasErr + HasShape {
// Required method
fn try_permute<Dst: Shape, Ax: Axes>(
self
) -> Result<Self::WithShape<Dst>, Self::Err>
where Self::Shape: PermuteShapeTo<Dst, Ax>;
// Provided method
fn permute<Dst: Shape, Ax: Axes>(self) -> Self::WithShape<Dst>
where Self::Shape: PermuteShapeTo<Dst, Ax> { ... }
}
Expand description
Changes order of dimensions/axes
Required Methods§
sourcefn try_permute<Dst: Shape, Ax: Axes>(
self
) -> Result<Self::WithShape<Dst>, Self::Err>where
Self::Shape: PermuteShapeTo<Dst, Ax>,
fn try_permute<Dst: Shape, Ax: Axes>( self ) -> Result<Self::WithShape<Dst>, Self::Err>where Self::Shape: PermuteShapeTo<Dst, Ax>,
Fallible version of PermuteTo::permute