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>where
I: TryInto<AxesIndex<isize>, Error = Error>,
R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw> + DataIntoCowAPI<'a>,
D: DimAPI,
B: DeviceAPI<T> + DeviceRawAPI<MaybeUninit<T>> + DeviceCreationAnyAPI<T> + OpAssignArbitaryAPI<T, Vec<usize>, D>,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.