GetTensorSizeInBytes property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtValue> ort_value, Pointer<Size> size)> >
GetTensorSizeInBytes
getter/setter pair
\brief Compute total size in bytes of the tensor data contained in an OrtValue.
Returns the total number of bytes used to store the tensor data. For numeric tensors, this is sizeof(element_type) * total_element_count. OrtValues that are not tensors or that are tensors that contain strings will cause an error to be returned.
\paramin ort_value OrtValue instance containing a tensor
\paramout size The total size of the tensor data in bytes
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.23
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtValue> ort_value,
ffi.Pointer<ffi.Size> size,
)
>
>
GetTensorSizeInBytes;