public virtual void WaiveOwnership(Tensor tensor) { tensor.DetachFromDevice(); m_AllocatedTensors.Remove(tensor); m_AllocatedBuffers.Remove(tensor.tensorOnDevice); }
public static ITensorData Unpin(this Tensor self, bool disposeUnpinned = true) { return(self.DetachFromDevice(disposeUnpinned)); }