Typedef CustomGetOutputFn_t

Typedef Documentation

typedef bool (*CustomGetOutputFn_t)(void *output_context, const char *name, uint64_t content_byte_size, void **content)

Type for the CustomGetOutput callback function.

This callback function is provided in the call to ComputeExecute and is used to get the buffers to store the output tensor values.

Return
false if error, true if success.
Parameters
  • output_context: The output context provided in call to CustomExecute.
  • name: The name of the output tensor.
  • content_byte_size: The size, in bytes, of the output tensor.
  • content: Returns a pointer to a buffer where the output for the tensor should be copied. The size of the buffer will be large enough to hold ‘content_byte_size’ bytes.