Trait einops::ReduceFn[][src]

pub trait ReduceFn {
    fn reduce(
        &self,
        pattern: &str,
        operation: Operation
    ) -> Result<Self, EinopsError>
    where
        Self: Sized + Backend
, { ... }
fn reduce_with_lengths(
        &self,
        pattern: &str,
        operation: Operation,
        axes_lengths: &[(&str, usize)]
    ) -> Result<Self, EinopsError>
    where
        Self: Sized + Backend
, { ... } }

Trait that allows calling the reduce operation directly on the tensor

Provided methods

fn reduce(
    &self,
    pattern: &str,
    operation: Operation
) -> Result<Self, EinopsError> where
    Self: Sized + Backend, 
[src]

Apply reduce operation using the pattern and Operation

fn reduce_with_lengths(
    &self,
    pattern: &str,
    operation: Operation,
    axes_lengths: &[(&str, usize)]
) -> Result<Self, EinopsError> where
    Self: Sized + Backend, 
[src]

Apply rearrange operation using the pattern, Operation, and additional axes lengths attribute

Loading content...

Implementors

Loading content...