예제 #1
0
        protected override void DisposeManagedResources()
        {
            base.DisposeManagedResources();

            //print($"deleting DeleteTensorHandle {Id} {EagerTensorHandle.ToString("x16")}");
            EagerTensorHandle.Dispose();
        }
예제 #2
0
        protected override void DisposeUnmanagedResources(IntPtr handle)
        {
            base.DisposeUnmanagedResources(handle);

            EagerTensorHandle.Dispose();

            if (_opHandle != null)
            {
                _opHandle.Dispose();
            }
        }
예제 #3
0
 public override IntPtr ToPointer()
 => EagerTensorHandle?.DangerousGetHandle() ?? IntPtr.Zero;