GetMayInplace property
Pointer<NativeFunction<Size Function(Pointer<Pointer<Int> > input_index, Pointer<Pointer<Int> > output_index)> >
GetMayInplace
getter/setter pair
Get the inplace_map that defines which output can reuse which input
Callers will provide 2 raw int* and pass in their address, this function will fill these 2 arrays
when return, output (*output_index)i may reuse the input (*input_indexi).
The return value is the size of these 2 arrays.
Callers are responsible to delete these 2 arrays after use by calling OrtCustomOp::ReleaseMayInplace().
Implementation
external ffi.Pointer<
ffi.NativeFunction<
ffi.Size Function(
ffi.Pointer<ffi.Pointer<ffi.Int>> input_index,
ffi.Pointer<ffi.Pointer<ffi.Int>> output_index,
)
>
>
GetMayInplace;