Home
last modified time | relevance | path

Searched refs:delegateHandle (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/nnapi/java/src/main/java/org/tensorflow/lite/nnapi/
DNnApiDelegate.java26 private long delegateHandle; field in NnApiDelegate
144 delegateHandle = in NnApiDelegate()
164 return delegateHandle; in getNativeHandle()
174 if (delegateHandle != INVALID_DELEGATE_HANDLE) { in close()
175 deleteDelegate(delegateHandle); in close()
176 delegateHandle = INVALID_DELEGATE_HANDLE; in close()
193 return getNnapiErrno(delegateHandle); in getNnapiErrno()
203 return getNnapiErrno(delegateHandle) != 0 /*ANEURALNETWORKS_NO_ERROR*/; in hasErrors()
207 if (delegateHandle == INVALID_DELEGATE_HANDLE) { in checkNotClosed()
223 private static native void deleteDelegate(long delegateHandle); in deleteDelegate() argument
[all …]
/external/tensorflow/tensorflow/lite/delegates/hexagon/java/src/main/java/org/tensorflow/lite/
DHexagonDelegate.java27 private long delegateHandle; field in HexagonDelegate
37 delegateHandle = createDelegate(); in HexagonDelegate()
38 if (delegateHandle == INVALID_DELEGATE_HANDLE) { in HexagonDelegate()
45 return delegateHandle; in getNativeHandle()
55 if (delegateHandle != INVALID_DELEGATE_HANDLE) { in close()
56 deleteDelegate(delegateHandle); in close()
57 delegateHandle = INVALID_DELEGATE_HANDLE; in close()
75 private static native void deleteDelegate(long delegateHandle); in deleteDelegate() argument
/external/tensorflow/tensorflow/lite/delegates/flex/java/src/main/java/org/tensorflow/lite/flex/
DFlexDelegate.java29 private long delegateHandle; field in FlexDelegate
33 delegateHandle = nativeCreateDelegate(); in FlexDelegate()
39 return delegateHandle; in getNativeHandle()
50 if (delegateHandle != INVALID_DELEGATE_HANDLE) { in close()
51 nativeDeleteDelegate(delegateHandle); in close()
52 delegateHandle = INVALID_DELEGATE_HANDLE; in close()
68 private static native void nativeDeleteDelegate(long delegateHandle); in nativeDeleteDelegate() argument
/external/tensorflow/tensorflow/lite/delegates/gpu/java/src/main/java/org/tensorflow/lite/gpu/
DGpuDelegate.java38 private long delegateHandle; field in GpuDelegate
95 delegateHandle = in GpuDelegate()
109 return delegateHandle; in getNativeHandle()
119 if (delegateHandle != INVALID_DELEGATE_HANDLE) { in close()
120 deleteDelegate(delegateHandle); in close()
121 delegateHandle = INVALID_DELEGATE_HANDLE; in close()
132 private static native void deleteDelegate(long delegateHandle); in deleteDelegate() argument
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DNativeInterpreterWrapper.java601 long interpreterHandle, long errorHandle, long delegateHandle); in applyDelegate() argument