public EagerTensor Resolve() { _id = c_api.TFE_EagerTensorId(EagerTensorHandle); if (tfe_tensor_handle == IntPtr.Zero) { tfe_tensor_handle = c_api.TFE_EagerTensorHandle(EagerTensorHandle); } if (_handle == IntPtr.Zero) { _handle = c_api.TFE_TensorHandleResolve(tfe_tensor_handle, status); } /*print($"new Tensor {Id} {_handle.ToString("x16")}"); * print($"new TensorHandle {Id} {tfe_tensor_handle.ToString("x16")}"); * print($"new EagerTensor {Id} {EagerTensorHandle.ToString("x16")}");*/ if (tfe_tensor_handle == IntPtr.Zero && _id == 0) { } GarbageCollector.Increase(_handle, GCItemType.TensorHandle); GarbageCollector.Increase(tfe_tensor_handle, GCItemType.LocalTensorHandle); GarbageCollector.Increase(EagerTensorHandle, GCItemType.EagerTensorHandle); return(this); }