Class OrtOpenVINOProviderOptions
java.lang.Object
smile.onnx.foreign.OrtOpenVINOProviderOptions
struct OrtOpenVINOProviderOptions {
const char *device_type;
unsigned char enable_npu_fast_compile;
const char *device_id;
size_t num_of_threads;
const char *cache_dir;
void *context;
unsigned char enable_opencl_throttling;
unsigned char enable_dynamic_shapes;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentcache_dir(MemorySegment struct) Getter for field:const char *cache_dirstatic voidcache_dir(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *cache_dirstatic final AddressLayoutLayout for field:const char *cache_dirstatic final longOffset for field:const char *cache_dirstatic MemorySegmentcontext(MemorySegment struct) Getter for field:void *contextstatic voidcontext(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *contextstatic final AddressLayoutLayout for field:void *contextstatic final longOffset for field:void *contextstatic MemorySegmentdevice_id(MemorySegment struct) Getter for field:const char *device_idstatic voiddevice_id(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *device_idstatic final AddressLayoutLayout for field:const char *device_idstatic final longOffset for field:const char *device_idstatic MemorySegmentdevice_type(MemorySegment struct) Getter for field:const char *device_typestatic voiddevice_type(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *device_typestatic final AddressLayoutLayout for field:const char *device_typestatic final longOffset for field:const char *device_typestatic byteenable_dynamic_shapes(MemorySegment struct) Getter for field:unsigned char enable_dynamic_shapesstatic voidenable_dynamic_shapes(MemorySegment struct, byte fieldValue) Setter for field:unsigned char enable_dynamic_shapesstatic final ValueLayout.OfByteLayout for field:unsigned char enable_dynamic_shapesstatic final longOffset for field:unsigned char enable_dynamic_shapesstatic byteenable_npu_fast_compile(MemorySegment struct) Getter for field:unsigned char enable_npu_fast_compilestatic voidenable_npu_fast_compile(MemorySegment struct, byte fieldValue) Setter for field:unsigned char enable_npu_fast_compilestatic final ValueLayout.OfByteLayout for field:unsigned char enable_npu_fast_compilestatic final longOffset for field:unsigned char enable_npu_fast_compilestatic byteGetter for field:unsigned char enable_opencl_throttlingstatic voidenable_opencl_throttling(MemorySegment struct, byte fieldValue) Setter for field:unsigned char enable_opencl_throttlingstatic final ValueLayout.OfByteLayout for field:unsigned char enable_opencl_throttlingstatic final longOffset for field:unsigned char enable_opencl_throttlingstatic final GroupLayoutlayout()The layout of this structstatic longnum_of_threads(MemorySegment struct) Getter for field:size_t num_of_threadsstatic voidnum_of_threads(MemorySegment struct, long fieldValue) Setter for field:size_t num_of_threadsstatic final ValueLayout.OfLongLayout for field:size_t num_of_threadsstatic final longOffset for field:size_t num_of_threadsstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
device_type$layout
Layout for field:const char *device_type -
device_type$offset
public static final long device_type$offset()Offset for field:const char *device_type -
device_type
Getter for field:const char *device_type -
device_type
Setter for field:const char *device_type -
enable_npu_fast_compile$layout
Layout for field:unsigned char enable_npu_fast_compile -
enable_npu_fast_compile$offset
public static final long enable_npu_fast_compile$offset()Offset for field:unsigned char enable_npu_fast_compile -
enable_npu_fast_compile
Getter for field:unsigned char enable_npu_fast_compile -
enable_npu_fast_compile
Setter for field:unsigned char enable_npu_fast_compile -
device_id$layout
Layout for field:const char *device_id -
device_id$offset
public static final long device_id$offset()Offset for field:const char *device_id -
device_id
Getter for field:const char *device_id -
device_id
Setter for field:const char *device_id -
num_of_threads$layout
Layout for field:size_t num_of_threads -
num_of_threads$offset
public static final long num_of_threads$offset()Offset for field:size_t num_of_threads -
num_of_threads
Getter for field:size_t num_of_threads -
num_of_threads
Setter for field:size_t num_of_threads -
cache_dir$layout
Layout for field:const char *cache_dir -
cache_dir$offset
public static final long cache_dir$offset()Offset for field:const char *cache_dir -
cache_dir
Getter for field:const char *cache_dir -
cache_dir
Setter for field:const char *cache_dir -
context$layout
Layout for field:void *context -
context$offset
public static final long context$offset()Offset for field:void *context -
context
Getter for field:void *context -
context
Setter for field:void *context -
enable_opencl_throttling$layout
Layout for field:unsigned char enable_opencl_throttling -
enable_opencl_throttling$offset
public static final long enable_opencl_throttling$offset()Offset for field:unsigned char enable_opencl_throttling -
enable_opencl_throttling
Getter for field:unsigned char enable_opencl_throttling -
enable_opencl_throttling
Setter for field:unsigned char enable_opencl_throttling -
enable_dynamic_shapes$layout
Layout for field:unsigned char enable_dynamic_shapes -
enable_dynamic_shapes$offset
public static final long enable_dynamic_shapes$offset()Offset for field:unsigned char enable_dynamic_shapes -
enable_dynamic_shapes
Getter for field:unsigned char enable_dynamic_shapes -
enable_dynamic_shapes
Setter for field:unsigned char enable_dynamic_shapes -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-