Class OrtOpenVINOProviderOptions

java.lang.Object
smile.onnx.foreign.OrtOpenVINOProviderOptions

public class OrtOpenVINOProviderOptions extends Object
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 Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • device_type$layout

      public static final AddressLayout 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

      public static MemorySegment device_type(MemorySegment struct)
      Getter for field:
      const char *device_type
      
    • device_type

      public static void device_type(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *device_type
      
    • enable_npu_fast_compile$layout

      public static final ValueLayout.OfByte 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

      public static byte enable_npu_fast_compile(MemorySegment struct)
      Getter for field:
      unsigned char enable_npu_fast_compile
      
    • enable_npu_fast_compile

      public static void enable_npu_fast_compile(MemorySegment struct, byte fieldValue)
      Setter for field:
      unsigned char enable_npu_fast_compile
      
    • device_id$layout

      public static final AddressLayout 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

      public static MemorySegment device_id(MemorySegment struct)
      Getter for field:
      const char *device_id
      
    • device_id

      public static void device_id(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *device_id
      
    • num_of_threads$layout

      public static final ValueLayout.OfLong 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

      public static long num_of_threads(MemorySegment struct)
      Getter for field:
      size_t num_of_threads
      
    • num_of_threads

      public static void num_of_threads(MemorySegment struct, long fieldValue)
      Setter for field:
      size_t num_of_threads
      
    • cache_dir$layout

      public static final AddressLayout 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

      public static MemorySegment cache_dir(MemorySegment struct)
      Getter for field:
      const char *cache_dir
      
    • cache_dir

      public static void cache_dir(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *cache_dir
      
    • context$layout

      public static final AddressLayout context$layout()
      Layout for field:
      void *context
      
    • context$offset

      public static final long context$offset()
      Offset for field:
      void *context
      
    • context

      public static MemorySegment context(MemorySegment struct)
      Getter for field:
      void *context
      
    • context

      public static void context(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *context
      
    • enable_opencl_throttling$layout

      public static final ValueLayout.OfByte 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

      public static byte enable_opencl_throttling(MemorySegment struct)
      Getter for field:
      unsigned char enable_opencl_throttling
      
    • enable_opencl_throttling

      public static void enable_opencl_throttling(MemorySegment struct, byte fieldValue)
      Setter for field:
      unsigned char enable_opencl_throttling
      
    • enable_dynamic_shapes$layout

      public static final ValueLayout.OfByte 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

      public static byte enable_dynamic_shapes(MemorySegment struct)
      Getter for field:
      unsigned char enable_dynamic_shapes
      
    • enable_dynamic_shapes

      public static void enable_dynamic_shapes(MemorySegment struct, byte fieldValue)
      Setter for field:
      unsigned char enable_dynamic_shapes
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()