into_shape_f

Function into_shape_f 

Source
pub fn into_shape_f<'a, I, R, T, B, D>(
    tensor: TensorBase<Storage<R, T, B>, D>,
    shape: I,
) -> Result<TensorBase<Storage<DataOwned<<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, T: Clone, B: DeviceAPI<T> + DeviceRawAPI<MaybeUninit<T>> + DeviceCreationAnyAPI<T> + OpAssignArbitaryAPI<T, Vec<usize>, D> + OpAssignAPI<T, Vec<usize>>, <B as DeviceRawAPI<T>>::Raw: Clone + 'a,
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.