Home
last modified time | relevance | path

Searched refs:nativeHandle (Results 1 – 25 of 31) sorted by relevance

12

/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/
DServer.java71 nativeHandle = allocate(serverDef); in Server()
76 start(nativeHandle); in start()
81 stop(nativeHandle); in stop()
88 handle = nativeHandle; in join()
112 delete(nativeHandle); in close()
113 nativeHandle = 0; in close()
118 private static native void start(long nativeHandle); in start() argument
120 private static native void stop(long nativeHandle); in stop() argument
122 private static native void join(long nativeHandle); in join() argument
124 private static native void delete(long nativeHandle); in delete() argument
[all …]
DGraph.java32 nativeHandle = allocate(); in Graph()
36 Graph(long nativeHandle) { in Graph() argument
37 this.nativeHandle = nativeHandle; in Graph()
49 if (nativeHandle == 0) { in close()
61 delete(nativeHandle); in close()
62 nativeHandle = 0; in close()
73 long oph = operation(nativeHandle, name); in operation()
131 importGraphDef(nativeHandle, graphDef, prefix); in importGraphDef()
143 return toGraphDef(nativeHandle); in toGraphDef()
204 ref.nativeHandle(), in addGradients()
[all …]
DSession.java69 nativeHandle = in Session()
70 (config == null) ? allocate(r.nativeHandle()) : allocate2(r.nativeHandle(), null, config); in Session()
78 Session(Graph g, long nativeHandle) { in Session() argument
80 this.nativeHandle = nativeHandle; in Session()
94 if (nativeHandle == 0) { in close()
106 delete(nativeHandle); in close()
107 nativeHandle = 0; in close()
327 nativeHandle, in runHelper()
361 if (nativeHandle == 0) { in Reference()
371 if (nativeHandle == 0) { in close()
[all …]
DEagerSession.java328 if (nativeHandle != 0L) { in close()
333 delete(nativeHandle); in close()
334 nativeHandle = 0L; in close()
347 long nativeHandle() { in nativeHandle() method in EagerSession
349 return nativeHandle; in nativeHandle()
508 private long nativeHandle; field in EagerSession
512 this.nativeHandle = allocate(options.async, options.devicePlacementPolicy.code, options.config); in EagerSession()
521 if (nativeHandle == 0L) { in checkSession()
DTensor.java143 long nativeHandle; in create() local
146 nativeHandle = allocate(t.dtype.c(), t.shapeCopy, byteSize); in create()
147 setValue(nativeHandle, obj); in create()
149 nativeHandle = allocateNonScalarBytes(t.shapeCopy, (Object[]) obj); in create()
151 nativeHandle = allocateScalarBytes((byte[]) obj); in create()
153 t.nativeRef = new NativeReference(nativeHandle); in create()
304 long nativeHandle = allocate(t.dtype.c(), t.shapeCopy, nbytes); in allocateForBuffer() local
305 t.nativeRef = new NativeReference(nativeHandle); in allocateForBuffer()
DGraphOperation.java126 return shape(r.nativeHandle(), getUnsafeNativeHandle(), outputIdx); in shape()
136 return DataType.fromC(dtype(r.nativeHandle(), getUnsafeNativeHandle(), outputIdx)); in dtype()
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DTensorImpl.java65 delete(nativeHandle); in close()
66 nativeHandle = 0; in close()
81 return numBytes(nativeHandle); in numBytes()
101 return index(nativeHandle); in index()
106 return name(nativeHandle); in name()
133 if (hasDelegateBufferHandle(nativeHandle)) { in setTo()
145 writeScalar(nativeHandle, src); in setTo()
147 writeMultiDimensionalArray(nativeHandle, src); in setTo()
149 writeScalar(nativeHandle, src); in setTo()
159 writeDirectBuffer(nativeHandle, src); in setTo()
[all …]
/external/renderscript-intrinsics-replacement-toolkit/renderscript-toolkit/src/main/java/com/google/android/renderscript/
DToolkit.kt94 nativeBlend(nativeHandle, mode.value, sourceArray, destArray, sizeX, sizeY, restriction) in blend()
142 nativeBlendBitmap(nativeHandle, mode.value, sourceBitmap, destBitmap, restriction) in blend()
198 nativeHandle, inputArray, vectorSize, sizeX, sizeY, radius, outputArray, restriction in blur()
237 nativeBlurBitmap(nativeHandle, inputBitmap, outputBitmap, radius, restriction) in blur()
370 nativeHandle, inputArray, inputVectorSize, sizeX, sizeY, outputArray, outputVectorSize, in colorMatrix()
416 nativeHandle, in colorMatrix()
484 nativeHandle, in convolve()
533 nativeConvolveBitmap(nativeHandle, inputBitmap, outputBitmap, coefficients, restriction) in convolve()
584 nativeHandle, in histogram()
628 nativeHistogramBitmap(nativeHandle, inputBitmap, outputArray, restriction) in histogram()
[all …]
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/core/
DBaseTaskApi.java32 private final long nativeHandle; field in BaseTaskApi
42 protected BaseTaskApi(long nativeHandle) { in BaseTaskApi() argument
43 if (nativeHandle == TaskJniUtils.INVALID_POINTER) { in BaseTaskApi()
46 this.nativeHandle = nativeHandle; in BaseTaskApi()
59 deinit(nativeHandle); in close()
64 return nativeHandle; in getNativeHandle()
90 protected abstract void deinit(long nativeHandle); in deinit() argument
/external/tensorflow/tensorflow/tools/android/inference_interface/java/org/tensorflow/contrib/android/
DRunStats.java29 nativeHandle = allocate(); in RunStats()
34 if (nativeHandle != 0) { in close()
35 delete(nativeHandle); in close()
37 nativeHandle = 0; in close()
42 add(nativeHandle, runMetadata); in add()
47 return summary(nativeHandle); in summary()
50 private long nativeHandle; field in RunStats
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/text/nlclassifier/
DBertNLClassifier.java52 private BertNLClassifier(long nativeHandle) { in BertNLClassifier() argument
53 super(nativeHandle); in BertNLClassifier()
149 private static native List<Category> classifyNative(long nativeHandle, String text);
151 private static native String getModelVersionNative(long nativeHandle);
153 private static native String getLabelsVersionNative(long nativeHandle);
156 protected void deinit(long nativeHandle) {
157 deinitJni(nativeHandle);
165 private native void deinitJni(long nativeHandle);
DNLClassifier.java136 protected NLClassifier(long nativeHandle) { in NLClassifier() argument
137 super(nativeHandle); in NLClassifier()
244 private static native List<Category> classifyNative(long nativeHandle, String text);
247 protected void deinit(long nativeHandle) {
248 deinitJni(nativeHandle);
256 private native void deinitJni(long nativeHandle);
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/text/qa/
DBertQuestionAnswerer.java33 private BertQuestionAnswerer(long nativeHandle) { in BertQuestionAnswerer() argument
34 super(nativeHandle); in BertQuestionAnswerer()
182 long nativeHandle, String context, String question);
185 protected void deinit(long nativeHandle) {
186 deinitJni(nativeHandle);
194 private native void deinitJni(long nativeHandle);
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/segmenter/
DImageSegmenter.java199 private ImageSegmenter(long nativeHandle, OutputType outputType) {
200 super(nativeHandle);
321 long nativeHandle =
336 return new ImageSegmenter(nativeHandle, options.getOutputType());
357 long nativeHandle,
367 protected void deinit(long nativeHandle) {
368 deinitJni(nativeHandle);
376 private native void deinitJni(long nativeHandle);
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/detector/
DObjectDetector.java222 private ObjectDetector(long nativeHandle) {
223 super(nativeHandle);
439 long nativeHandle, ByteBuffer image, int width, int height, int orientation);
442 protected void deinit(long nativeHandle) {
443 deinitJni(nativeHandle);
451 private native void deinitJni(long nativeHandle);
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/classifier/
DImageClassifier.java206 private ImageClassifier(long nativeHandle) {
207 super(nativeHandle);
440 long nativeHandle, ByteBuffer image, int width, int height, int[] roi, int orientation);
443 protected void deinit(long nativeHandle) {
444 deinitJni(nativeHandle);
452 private native void deinitJni(long nativeHandle);
/external/minigbm/cros_gralloc/gralloc4/
DCrosGralloc4Utils.cc93 const native_handle_t* nativeHandle = fenceHandle.getNativeHandle(); in convertToFenceFd() local
94 if (nativeHandle && nativeHandle->numFds > 1) { in convertToFenceFd()
98 *outFenceFd = (nativeHandle && nativeHandle->numFds == 1) ? nativeHandle->data[0] : -1; in convertToFenceFd()
/external/deqp/external/vulkancts/modules/vulkan/util/
DvktExternalMemoryUtil.cpp554 NativeHandle& nativeHandle) in getMemoryNative() argument
571 nativeHandle = fd; in getMemoryNative()
586 nativeHandle.setZirconHandle(handle); in getMemoryNative()
606 nativeHandle.setWin32Handle(NativeHandle::WIN32HANDLETYPE_NT, handle); in getMemoryNative()
610 nativeHandle.setWin32Handle(NativeHandle::WIN32HANDLETYPE_KMT, handle); in getMemoryNative()
634 nativeHandle = ahb; in getMemoryNative()
685 NativeHandle& nativeHandle, in getFenceNative() argument
712 nativeHandle = fd; in getFenceNative()
732 nativeHandle.setWin32Handle(NativeHandle::WIN32HANDLETYPE_NT, handle); in getFenceNative()
736 nativeHandle.setWin32Handle(NativeHandle::WIN32HANDLETYPE_KMT, handle); in getFenceNative()
[all …]
DvktExternalMemoryUtil.hpp219 NativeHandle& nativeHandle);
239 NativeHandle& nativeHandle);
267 NativeHandle& nativeHandle,
/external/deqp/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationCrossInstanceSharingTests.cpp731 NativeHandle& nativeHandle, in importAndBindMemory() argument
738 …catedMemory(vkd, device, buffer, requirements, externalType, exportedMemoryTypeIndex, nativeHandle) in importAndBindMemory()
739 … : importMemory(vkd, device, requirements, externalType, exportedMemoryTypeIndex, nativeHandle); in importAndBindMemory()
749 NativeHandle& nativeHandle, in importAndBindMemory() argument
756 …icatedMemory(vkd, device, image, requirements, externalType, exportedMemoryTypeIndex, nativeHandle) in importAndBindMemory()
757 … : importMemory(vkd, device, requirements, externalType, exportedMemoryTypeIndex, nativeHandle); in importAndBindMemory()
769 NativeHandle& nativeHandle, in importResource() argument
826 …de::MovePtr<vk::Allocation> allocation = importAndBindMemory(vkd, device, *image, nativeHandle, e… in importResource()
854 …de::MovePtr<vk::Allocation> allocation = importAndBindMemory(vkd, device, *buffer, nativeHandle, e… in importResource()
DvktSynchronizationSignalOrderTests.cpp294 NativeHandle& nativeHandle, in importAndBindMemory() argument
302 …atedMemory(vkd, device, buffer, requirements, externalType, exportedMemoryTypeIndex, nativeHandle); in importAndBindMemory()
304 …ory = importMemory(vkd, device, requirements, externalType, exportedMemoryTypeIndex, nativeHandle); in importAndBindMemory()
314 NativeHandle& nativeHandle, in importAndBindMemory() argument
322 …catedMemory(vkd, device, image, requirements, externalType, exportedMemoryTypeIndex, nativeHandle); in importAndBindMemory()
324 …ory = importMemory(vkd, device, requirements, externalType, exportedMemoryTypeIndex, nativeHandle); in importAndBindMemory()
359 NativeHandle& nativeHandle, in importResource() argument
415 …MovePtr<Allocation> allocation = importAndBindMemory(vkd, device, *image, nativeHandle, externalT… in importResource()
446 nativeHandle, in importResource()
DvktSynchronizationWin32KeyedMutexTests.cpp322 NativeHandle& nativeHandle, in importAndBindMemory() argument
346 …ortMemory(vkd, device, requirements.memoryRequirements, externalType, nativeHandle, !!dedicatedReq… in importAndBindMemory()
355 NativeHandle& nativeHandle, in importAndBindMemory() argument
379 …ortMemory(vkd, device, requirements.memoryRequirements, externalType, nativeHandle, !!dedicatedReq… in importAndBindMemory()
391 NativeHandle& nativeHandle, in importResource() argument
446 …cation> allocation = importAndBindMemory(vkd, device, *image, nativeHandle, externalType); in importResource()
474 …ation> allocation = importAndBindMemory(vkd, device, *buffer, nativeHandle, externalType); in importResource()
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawAhbTests.cpp327 NativeHandle nativeHandle(ahb); in iterate() local
333 …ahbApi->describe(nativeHandle.getAndroidHardwareBuffer(), DE_NULL, DE_NULL, DE_NULL, &ahbFormat, D… in iterate()
343 …vk.getAndroidHardwareBufferPropertiesANDROID(device, nativeHandle.getAndroidHardwareBuffer(), &ahb… in iterate()
349 nativeHandle.getAndroidHardwareBuffer() // struct AHardwareBuffer* buffer in iterate()
/external/drm_hwcomposer/tests/test_include/
Dmali_gralloc_buffer.h73 struct native_handle nativeHandle;
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/task_library/
Dcustomized_task_api.md237 nativeHandle`, which is the pointer returned from C++.
246 long nativeHandle, // C++ pointer
268 private BertQuestionAnswerer(long nativeHandle) {
269 super(nativeHandle);

12