CreateSparseTensorAsOrtValue property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtAllocator> allocator, Pointer<Int64> dense_shape, Size dense_shape_len, UnsignedInt type, Pointer<Pointer<OrtValue>> out)>> CreateSparseTensorAsOrtValue
getter/setter pair

\brief Create an ::OrtValue with a sparse tensor that is empty.

Use FillSparseTensor

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtAllocator> allocator,
      ffi.Pointer<ffi.Int64> dense_shape,
      ffi.Size dense_shape_len,
      ffi.UnsignedInt type,
      ffi.Pointer<ffi.Pointer<OrtValue>> out,
    )
  >
>
CreateSparseTensorAsOrtValue;