public virtual void WaiveOwnership(Tensor tensor) { tensor.Unpin(); m_AllocatedTensors.Remove(tensor); m_AllocatedBuffers.Remove(tensor.tensorOnDevice); }