KernelInfoGetAttribute_tensor property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelInfo> info, Pointer<Char> name, Pointer<OrtAllocator> allocator, Pointer<Pointer<OrtValue> > out)> >
KernelInfoGetAttribute_tensor
getter/setter pair
\brief Get a ::OrtValue tensor stored as an attribute in the graph node.
Used in the CreateKernel callback of an OrtCustomOp to get a tensor attribute.
\paramin info ::OrtKernelInfo instance.
\paramin name UTF-8 null-terminated string representing the attribute's name.
\paramin allocator Allocator used to allocate the internal tensor state.
\paramout out Returns newly created ::OrtValue. Must be freed with OrtApi::ReleaseValue,
which will also free internal tensor state allocated with the provided allocator.
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtKernelInfo> info,
ffi.Pointer<ffi.Char> name,
ffi.Pointer<OrtAllocator> allocator,
ffi.Pointer<ffi.Pointer<OrtValue>> out,
)
>
>
KernelInfoGetAttribute_tensor;