Function CustomInitialize

Function Documentation

int CustomInitialize(const CustomInitializeData *data, void **custom_context)

Initialize the custom backend for a given model configuration and get the associated custom context.

Return

An error code. Zero indicates success, all other values indicate failure. Use CustomErrorString to get the error string for an error code.

Parameters
  • data: The CustomInitializeData provided for initialization.

  • custom_context: Returns the opaque handle to the custom state associated with this initialization. Returns nullptr if no context associated with the initialization. Note that in the case of initialization failure, a context state needs to be returned to retrieve error string for a given code.