UseBlockSparseIndices property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtValue> ort_value, Pointer<Int64> indices_shape, Size indices_shape_len, Pointer<Int32> indices_data)> >
UseBlockSparseIndices
getter/setter pair
The assigns BlockSparse format indices to the SparseTensor that was created by OrtApi::CreateSparseTensorWithValuesAsOrtValue above. It also sets OrtSparseFormat to ORT_SPARSE_BLOCK_SPARSE. This will not allocate any additional memory for data. The life span of indices_data buffer must eclipse the lifespan of this ::OrtValue.
\paramin,out ort_value OrtValue instance constructed with OrtApi::CreateSparseTensorWithValuesAsOrtValue
\paramin indices_shape pointer to indices shape. Use {0} for fully sparse tensors
\paramin indices_shape_len length of the indices shape
\paramin,out indices_data pointer to user pre-allocated buffer or nullptr for fully sparse tensors.
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtValue> ort_value,
ffi.Pointer<ffi.Int64> indices_shape,
ffi.Size indices_shape_len,
ffi.Pointer<ffi.Int32> indices_data,
)
>
>
UseBlockSparseIndices;