Skip to main content

init_reduce_output

Function init_reduce_output 

Source
pub fn init_reduce_output<Run: CubeRuntime>(
    input: &CubeTensor<Run>,
    dim: usize,
    dtypes: &ReduceDtypes,
) -> Option<CubeTensor<Run>>
Expand description

Creates an empty output tensor with the proper shape and decreasing strides to reduce the given axis of input or return None if axis is out-of-bound.