Skip to main content

broadcast_in_dim

Function broadcast_in_dim 

Source
pub fn broadcast_in_dim<T: Copy>(
    x: &[T],
    shape: &[usize],
    out_shape: &[usize],
    dims: &[usize],
) -> Vec<T>
Expand description

broadcast_in_dim: dimension i of x becomes dimension dims[i] of the result, which has shape out_shape.