GetTensorMutableData property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtValue> value, Pointer<Pointer<Void>> out)>> GetTensorMutableData
getter/setter pair

\brief Get a pointer to the raw data inside a tensor

Used to read/write/modify the internal tensor data directly. \note The returned pointer is valid until the \p value is destroyed.

\paramin value A tensor type (string tensors are not supported) \paramout out Filled in with a pointer to the internal storage

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtValue> value,
      ffi.Pointer<ffi.Pointer<ffi.Void>> out,
    )
  >
>
GetTensorMutableData;