TensorAt property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtValue> value, Pointer<Int64> location_values, Size location_values_count, Pointer<Pointer<Void>> out)>> TensorAt
getter/setter pair

\brief Direct memory access to a specified tensor element

For example, given a tensor with shape of 3,224,224, a pointer to the element at location 2,150,128 can be retrieved

This function only works for numeric type tensors (No strings, etc). This is a no-copy method whose returned pointer is valid until the passed in ::OrtValue is free'd.

\paramin value \paramin location_values Pointer to an array of index values that specify an element's location relative to its shape \paramin location_values_count Number of elements in location_values. Must match the number of elements in the tensor's shape. \paramout out Set to a pointer to the element specified

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtValue> value,
      ffi.Pointer<ffi.Int64> location_values,
      ffi.Size location_values_count,
      ffi.Pointer<ffi.Pointer<ffi.Void>> out,
    )
  >
>
TensorAt;