Skip to content

morapi_DnnForward Struct Reference

dnn

Forward-propagation functions.
More...

#include <morapi_softneuro.h>

Public Types

typedef morapi_Result(*  morapi_DnnForward_Func) (void *obj, morapi_Int32 i_task_index, const morapi_DnnForwardArg *i_arg)
typedef morapi_Result(*  morapi_DnnForward_Profile) (void *obj, morapi_Int64 *o_start_usec, morapi_Int64 *o_stop_usec)

Public Member Functions

morapi_Result  morapi_DnnForward_clear (morapi_DnnForward *self)
morapi_Result  morapi_DnnForward_add (morapi_DnnForward *self, const morapi_Char *i_name, morapi_DnnForward_Func i_func, void *i_func_obj, morapi_Int32 i_task_num, morapi_DnnForward_Profile i_profile, void *i_profile_obj)

Data Fields

const morapi_Char names [8]
morapi_DnnForward_Func  funcs [8]
void *  func_objs [8]
morapi_Int32  task_nums [8]
morapi_DnnForward_Profile  profiles [8]
void *  profile_objs [8]
morapi_Int32  num


Detailed Description

Forward-propagation functions.


Member Typedef Documentation


morapi_DnnForward_Func

typedef morapi_Result(* morapi_DnnForward_Func) (void *obj, morapi_Int32 i_task_index, const morapi_DnnForwardArg *i_arg)

Forward function.

Parameters

  • obj : the routine object.
  • i_task_index : the task index.
  • i_arg : the argument.


morapi_DnnForward_Profile

typedef morapi_Result(* morapi_DnnForward_Profile) (void *obj, morapi_Int64 *o_start_usec, morapi_Int64 *o_stop_usec)

Profile function.

Parameters

  • obj : the routine object.
  • o_start_usec : starting time (usec) of processing.
  • o_start_usec : stopping time (usec) or processing.

Member Function Documentation


morapi_DnnForward_clear()

morapi_Result morapi_DnnForward_clear (morapi_DnnForward * self)

Clears the forward-propagation object.

Parameters

  • self : the forward-propagation object.


morapi_DnnForward_add()

morapi_Result morapi_DnnForward_add (morapi_DnnForward * self,
                                     const morapi_Char * i_name,
                                     morapi_DnnForward_Func i_func,
                                     void * i_func_obj,
                                     morapi_Int32 i_task_num,
                                     morapi_DnnForward_Profile i_profile,
                                     void * i_profile_obj)

Adds a forward function.

Parameters

  • self : forward-propagaion object.
  • i_name : name of forward-propagation.
  • i_func : function for forward-propagation.
  • i_func_obj : the first argument object of i_func.
  • i_task_num : the number of forward-propagatin tasks.
  • i_profile : function for profiling.
  • i_profile_obj : the first argument object of i_profile.

Field Documentation


names

const morapi_Char* morapi_DnnForward::names[8]

function names.


funcs

morapi_DnnForward_Func morapi_DnnForward::funcs[8]

forward functions.


func_objs

void* morapi_DnnForward::func_objs[8]

objects passed to the first argument of funcs.


task_nums

morapi_Int32 morapi_DnnForward::task_nums[8]

the numbers of tasks.


profiles

morapi_DnnForward_Profile morapi_DnnForward::profiles[8]

profile functions.


profile_objs

void* morapi_DnnForward::profile_objs[8]

objects passed to the first argument of profiles.


num

morapi_Int32 morapi_DnnForward::num

the number of forward functions.