GetROCMProviderOptionsAsString property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtROCMProviderOptions> rocm_options, Pointer<OrtAllocator> allocator, Pointer<Pointer<Char>> ptr)>> GetROCMProviderOptionsAsString
getter/setter pair

Get serialized ROCm provider options string.

For example, "device_id=0;arena_extend_strategy=0;......"

\param rocm_options - OrtROCMProviderOptions instance \param allocator - a ptr to an instance of OrtAllocator obtained with CreateAllocator() or GetAllocatorWithDefaultOptions() the specified allocator will be used to allocate continuous buffers for output strings and lengths. \param ptr - is a UTF-8 null terminated string allocated using 'allocator'. The caller is responsible for using the same allocator to free it.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.16.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtROCMProviderOptions> rocm_options,
      ffi.Pointer<OrtAllocator> allocator,
      ffi.Pointer<ffi.Pointer<ffi.Char>> ptr,
    )
  >
>
GetROCMProviderOptionsAsString;