to_layout_f

Function to_layout_f 

Source
pub fn to_layout_f<R, T, D, B, D2>(
    tensor: &TensorBase<Storage<R, T, B>, D>,
    layout: Layout<D2>,
) -> Result<TensorBase<Storage<DataCow<'_, <B as DeviceRawAPI<T>>::Raw>, T, B>, D2>, Error>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, D2: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignArbitaryAPI<T, D2, D>,