protected override void DisposeManagedResources() { base.DisposeManagedResources(); //print($"deleting DeleteTensorHandle {Id} {EagerTensorHandle.ToString("x16")}"); EagerTensorHandle.Dispose(); }
protected override void DisposeUnmanagedResources(IntPtr handle) { base.DisposeUnmanagedResources(handle); EagerTensorHandle.Dispose(); if (_opHandle != null) { _opHandle.Dispose(); } }
public override IntPtr ToPointer() => EagerTensorHandle?.DangerousGetHandle() ?? IntPtr.Zero;