TensorIntoOwnedAPI

Trait TensorIntoOwnedAPI 

Source
pub trait TensorIntoOwnedAPI<T, B, D>
where D: DimAPI, B: DeviceAPI<T>,
{ // Required method fn into_owned( self, ) -> TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>; }

Required Methods§

Source

fn into_owned( self, ) -> TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>

Convert tensor into owned tensor.

Data is either moved or fully cloned. Layout is not involved; i.e. all underlying data is moved or cloned without changing layout.

Implementors§

Source§

impl<R, T, B, D> TensorIntoOwnedAPI<T, B, D> for TensorBase<Storage<R, T, B>, D>
where R: DataCloneAPI<Data = <B as DeviceRawAPI<T>>::Raw>, <B as DeviceRawAPI<T>>::Raw: Clone, T: Clone, D: DimAPI, B: DeviceAPI<T> + DeviceRawAPI<MaybeUninit<T>> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, D>,

Source§

impl<T, B, D> TensorIntoOwnedAPI<T, B, D> for TensorMutable<'_, T, B, D>