Home
last modified time | relevance | path

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

/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()
130 importGraphDef(nativeHandle, graphDef, prefix); in importGraphDef()
142 return toGraphDef(nativeHandle); in toGraphDef()
203 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()
315 nativeHandle, in runHelper()
349 if (nativeHandle == 0) { in Reference()
359 if (nativeHandle == 0) { in close()
[all …]
DTensor.java145 t.nativeHandle = allocate(t.dtype.c(), t.shapeCopy, byteSize); in create()
146 setValue(t.nativeHandle, obj); in create()
148 t.nativeHandle = allocateNonScalarBytes(t.shapeCopy, (Object[]) obj); in create()
150 t.nativeHandle = allocateScalarBytes((byte[]) obj); in create()
317 t.nativeHandle = allocate(t.dtype.c(), t.shapeCopy, nbytes); in allocateForBuffer()
330 if (nativeHandle != 0) { in close()
331 delete(nativeHandle); in close()
332 nativeHandle = 0; in close()
377 return scalarFloat(nativeHandle); in floatValue()
386 return scalarDouble(nativeHandle); in doubleValue()
[all …]
DOperation.java187 return shape(r.nativeHandle(), unsafeNativeHandle, output); in shape()
197 return DataType.fromC(dtype(r.nativeHandle(), unsafeNativeHandle, output)); in dtype()
DOperationBuilder.java44 this.unsafeNativeHandle = allocate(r.nativeHandle(), type, name); in OperationBuilder()
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DTensor.java44 delete(nativeHandle); in close()
45 nativeHandle = 0; in close()
65 return numBytes(nativeHandle); in numBytes()
89 return index(nativeHandle); in index()
104 if (hasDelegateBufferHandle(nativeHandle)) { in setTo()
116 writeDirectBuffer(nativeHandle, srcBuffer); in setTo()
122 writeMultiDimensionalArray(nativeHandle, src); in setTo()
135 if (hasDelegateBufferHandle(nativeHandle)) { in copyTo()
147 readMultiDimensionalArray(nativeHandle, dst); in copyTo()
176 this.shapeCopy = shape(nativeHandle); in refreshShape()
[all …]
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DNativeAudioThread.java172 public native int nativeProcessNext(long nativeHandle, double[] samples, long offset); in nativeProcessNext() argument
173 public native int nativeDestroy(long nativeHandle); in nativeDestroy() argument
176 public native int[] nativeGetRecorderBufferPeriod(long nativeHandle); in nativeGetRecorderBufferPeriod() argument
177 public native int nativeGetRecorderMaxBufferPeriod(long nativeHandle); in nativeGetRecorderMaxBufferPeriod() argument
178 public native double nativeGetRecorderVarianceBufferPeriod(long nativeHandle); in nativeGetRecorderVarianceBufferPeriod() argument
179 public native int[] nativeGetPlayerBufferPeriod(long nativeHandle); in nativeGetPlayerBufferPeriod() argument
180 public native int nativeGetPlayerMaxBufferPeriod(long nativeHandle); in nativeGetPlayerMaxBufferPeriod() argument
181 public native double nativeGetPlayerVarianceBufferPeriod(long nativeHandle); in nativeGetPlayerVarianceBufferPeriod() argument
182 public native BufferCallbackTimes nativeGetPlayerCallbackTimeStamps(long nativeHandle); in nativeGetPlayerCallbackTimeStamps() argument
183 public native BufferCallbackTimes nativeGetRecorderCallbackTimeStamps(long nativeHandle); in nativeGetRecorderCallbackTimeStamps() argument
[all …]
/external/tensorflow/tensorflow/contrib/android/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/deqp/external/vulkancts/modules/vulkan/util/
DvktExternalMemoryUtil.cpp456 NativeHandle& nativeHandle) in getMemoryNative() argument
472 nativeHandle = fd; in getMemoryNative()
492 nativeHandle.setWin32Handle(NativeHandle::WIN32HANDLETYPE_NT, handle); in getMemoryNative()
496 nativeHandle.setWin32Handle(NativeHandle::WIN32HANDLETYPE_KMT, handle); in getMemoryNative()
520 nativeHandle = ahb; in getMemoryNative()
571 NativeHandle& nativeHandle) in getFenceNative() argument
588 nativeHandle = fd; in getFenceNative()
608 nativeHandle.setWin32Handle(NativeHandle::WIN32HANDLETYPE_NT, handle); in getFenceNative()
612 nativeHandle.setWin32Handle(NativeHandle::WIN32HANDLETYPE_KMT, handle); in getFenceNative()
726 NativeHandle& nativeHandle) in getSemaphoreNative() argument
[all …]
DvktExternalMemoryUtil.hpp186 NativeHandle& nativeHandle);
201 NativeHandle& nativeHandle);
229 NativeHandle& nativeHandle);
/external/deqp/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationCrossInstanceSharingTests.cpp736 NativeHandle& nativeHandle, in importAndBindMemory() argument
743 …catedMemory(vkd, device, buffer, requirements, externalType, exportedMemoryTypeIndex, nativeHandle) in importAndBindMemory()
744 … : importMemory(vkd, device, requirements, externalType, exportedMemoryTypeIndex, nativeHandle); in importAndBindMemory()
754 NativeHandle& nativeHandle, in importAndBindMemory() argument
761 …icatedMemory(vkd, device, image, requirements, externalType, exportedMemoryTypeIndex, nativeHandle) in importAndBindMemory()
762 … : importMemory(vkd, device, requirements, externalType, exportedMemoryTypeIndex, nativeHandle); in importAndBindMemory()
774 NativeHandle& nativeHandle, in importResource() argument
830 …de::MovePtr<vk::Allocation> allocation = importAndBindMemory(vkd, device, *image, nativeHandle, e… in importResource()
858 …de::MovePtr<vk::Allocation> allocation = importAndBindMemory(vkd, device, *buffer, nativeHandle, e… in importResource()
DvktSynchronizationWin32KeyedMutexTests.cpp298 NativeHandle& nativeHandle, in importAndBindMemory() argument
322 …ortMemory(vkd, device, requirements.memoryRequirements, externalType, nativeHandle, !!dedicatedReq… in importAndBindMemory()
331 NativeHandle& nativeHandle, in importAndBindMemory() argument
355 …ortMemory(vkd, device, requirements.memoryRequirements, externalType, nativeHandle, !!dedicatedReq… in importAndBindMemory()
367 NativeHandle& nativeHandle, in importResource() argument
421 …cation> allocation = importAndBindMemory(vkd, device, *image, nativeHandle, externalType); in importResource()
449 …ation> allocation = importAndBindMemory(vkd, device, *buffer, nativeHandle, externalType); in importResource()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiExternalMemoryTests.cpp537 NativeHandle& nativeHandle) in submitDummySignalAndGetSemaphoreNative() argument
589 getSemaphoreNative(vk, device, semaphore, externalType, nativeHandle); in submitDummySignalAndGetSemaphoreNative()
649 NativeHandle& nativeHandle) in submitDummySignalAndGetFenceNative() argument
701 getFenceNative(vk, device, fence, externalType, nativeHandle); in submitDummySignalAndGetFenceNative()
3850 NativeHandle nativeHandle(ahb); in ValidateAHardwareBuffer() local