Skip to content

morapi_DnnRoutineCB Struct Reference

dnn

Callback functions for dnn routine.
More...

#include <morapi_softneuro.h>

Public Types

typedef void *(*  morapi_Create_DnnRoutineCB) (morapi_Env *env)
typedef morapi_Result(*  morapi_Destroy_DnnRoutineCB) (morapi_Env *env, void *self)
typedef const morapi_Char *(*  morapi_DnnRoutineCB_GetParamsRecipe) (void *obj)
typedef morapi_Result(*  morapi_DnnRoutineCB_Init) (void *obj, morapi_DnnRoutine *io_routine)
typedef morapi_Result(*  morapi_DnnRoutineCB_Cleanup) (void *obj)
typedef morapi_Result(*  morapi_DnnRoutineCB_Compile) (void *obj, morapi_DnnForward *o_forward)
typedef morapi_Result(*  morapi_DnnRoutineCB_Reset) (void *obj)

Public Member Functions

morapi_Result  morapi_DnnRoutineCB_clear (morapi_DnnRoutine *self)

Data Fields

morapi_Create_DnnRoutineCB  create
morapi_Destroy_DnnRoutineCB  destroy
morapi_DnnRoutineCB_GetParamsRecipe  get_params_recipe
morapi_DnnRoutineCB_Init  init
morapi_DnnRoutineCB_Cleanup  cleanup
morapi_DnnRoutineCB_Compile  compile
morapi_DnnRoutineCB_Reset  reset


Detailed Description

Callback functions for dnn routine.


Member Typedef Documentation


morapi_Create_DnnRoutineCB

typedef void*(* morapi_Create_DnnRoutineCB) (morapi_Env *env)

Creates a routine object.

Parameters

  • env : environment where the object will be created


morapi_Destroy_DnnRoutineCB

typedef morapi_Result(* morapi_Destroy_DnnRoutineCB) (morapi_Env *env, void *self)

Destroys the routine object.

Parameters

  • env : environment where the object was created
  • self : routine object to be destroyed


morapi_DnnRoutineCB_GetParamsRecipe

typedef const morapi_Char*(* morapi_DnnRoutineCB_GetParamsRecipe) (void *obj)

Gets the recipe of routine parameters.

Parameters

  • obj : routine object


morapi_DnnRoutineCB_Init

typedef morapi_Result(* morapi_DnnRoutineCB_Init) (void *obj, morapi_DnnRoutine *io_routine)

Initializes the routine object.

Parameters

  • obj : routine object
  • io_routine : routine object


morapi_DnnRoutineCB_Cleanup

typedef morapi_Result(* morapi_DnnRoutineCB_Cleanup) (void *obj)

Cleans up the routine object.

Parameters

  • obj : routine object


morapi_DnnRoutineCB_Compile

typedef morapi_Result(* morapi_DnnRoutineCB_Compile) (void *obj, morapi_DnnForward *o_forward)

Compiles the routine object.

Parameters

  • obj : routine object
  • o_forward : routine forward


morapi_DnnRoutineCB_Reset

typedef morapi_Result(* morapi_DnnRoutineCB_Reset) (void *obj)

Resets the routine object.

Parameters

  • obj : routine object

Member Function Documentation


morapi_DnnRoutineCB_clear()

morapi_Result morapi_DnnRoutineCB_clear (morapi_DnnRoutine * self)

Clears the callback functions.

Parameters

  • self : routine object

Field Documentation


create

morapi_Create_DnnRoutineCB morapi_DnnRoutineCB::create

creates a routine object.


destroy

morapi_Destroy_DnnRoutineCB morapi_DnnRoutineCB::destroy

destroys the routine object.


get_params_recipe

morapi_DnnRoutineCB_GetParamsRecipe morapi_DnnRoutineCB::get_params_recipe

gets the recipe of routine parameters.


init

morapi_DnnRoutineCB_Init morapi_DnnRoutineCB::init

initializes the routine object.


cleanup

morapi_DnnRoutineCB_Cleanup morapi_DnnRoutineCB::cleanup

cleans up the routine object.


compile

morapi_DnnRoutineCB_Compile morapi_DnnRoutineCB::compile

compiles the routine object.


reset

morapi_DnnRoutineCB_Reset morapi_DnnRoutineCB::reset

resets the routine object.