change_shape_f

Function change_shape_f 

Source
pub fn change_shape_f<'a, I, R, T, B, D>(
    tensor: TensorBase<Storage<R, T, B>, D>,
    shape: I,
) -> Result<TensorBase<Storage<DataCow<'a, <B as DeviceRawAPI<T>>::Raw>, T, B>, Vec<usize>>, Error>
Expand description

Reshapes the given tensor to the specified shape.

ยงSee also

Refer to reshape, into_shape and change_shape for more details and examples.