pub trait TensorIntoOwnedAPI<T, B, D>{
// Required method
fn into_owned(self) -> Tensor<T, B, D>;
}Required Methods§
Sourcefn into_owned(self) -> Tensor<T, B, D>
fn into_owned(self) -> Tensor<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.