into_layout

Function into_layout 

Source
pub fn into_layout<'a, R, T, B, D, D2>(
    tensor: TensorBase<Storage<R, T, B>, D>,
    layout: Layout<D2>,
) -> TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D2>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw> + DataIntoCowAPI<'a>, D: DimAPI, D2: DimAPI, T: Clone, B: DeviceAPI<T> + DeviceRawAPI<MaybeUninit<T>> + DeviceCreationAnyAPI<T> + OpAssignArbitaryAPI<T, D2, D> + OpAssignAPI<T, D2>, <B as DeviceRawAPI<T>>::Raw: Clone + 'a,