pub type TensorCell = AliasTrackingRefCell<Tensor>;
Aliased Type§
pub struct TensorCell { /* private fields */ }
Implementations§
Source§impl TensorCell
impl TensorCell
Sourcepub fn try_cpu(self) -> Result<TensorCell, BorrowError>
pub fn try_cpu(self) -> Result<TensorCell, BorrowError>
Return cell with the backing tensor on the CPU. If the backing tensor is on a GPU, it’ll create a new Tensor/TensorCell with a copy of the backing tensor. If the tensor is already on the CPU, it’ll just return a this cell.