to_shape_f

Function to_shape_f 

Source
pub fn to_shape_f<'a, I, R, T, B, D>(
    tensor: &'a 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.