Function GenieNode_setEmbeddingCallback¶
Defined in File GenieNode.h
Function Documentation¶
-
Genie_Status_t GenieNode_setEmbeddingCallback(const GenieNode_Handle_t nodeHandle, const GenieNode_IOName_t nodeIOName, const GenieNode_EmbeddingOutputCallback_t callback)¶
A function to setCallback for encoder node output.
- Parameters
nodeHandle – [in] A node handle.
nodeIOName – [in] Node IO name.
callback – [in] A user callback function for embedding output.
- Returns
Status code:
GENIE_STATUS_SUCCESS: API call was successful.
GENIE_STATUS_ERROR_INVALID_HANDLE: Node handle is invalid.
GENIE_STATUS_ERROR_MEM_ALLOC: Memory (de)allocation failure.