CreateTensorAsOrtValue property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtAllocator> allocator, Pointer<Int64> shape, Size shape_len, UnsignedInt type, Pointer<Pointer<OrtValue> > out)> >
CreateTensorAsOrtValue
getter/setter pair
\brief Create a tensor
Create a tensor using a supplied ::OrtAllocator
\paramin allocator
\paramin shape Pointer to the tensor shape dimensions.
\paramin shape_len The number of tensor shape dimensions.
\paramin type
\paramout out Returns newly created ::OrtValue. Must be freed with OrtApi::ReleaseValue
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtAllocator> allocator,
ffi.Pointer<ffi.Int64> shape,
ffi.Size shape_len,
ffi.UnsignedInt type,
ffi.Pointer<ffi.Pointer<OrtValue>> out,
)
>
>
CreateTensorAsOrtValue;