Skip to content

prof

dnn

Dnn profiling for tuning.
More...


Data Structures

struct   morapi_DnnProf
struct   morapi_DnnRoutinePlan
struct   morapi_DnnSchemaPlan
struct   morapi_DnnLayerPlan
struct   morapi_DnnNetPlan
struct   morapi_DnnPlan
struct   morapi_DnnOptimizer
struct   morapi_DnnRecipe

Typedefs

typedef void(*  morapi_DnnProfProgressedCB) (void *, morapi_DnnProf *)

Enumerations

enum   morapi_DnnProfEstimateMode { MORAPI_DNN_PROF_ESTIMATE_MODE_MIN, MORAPI_DNN_PROF_ESTIMATE_MODE_AVE, MORAPI_DNN_PROF_ESTIMATE_MODE_ROBUST }

Functions

void  morapi_DnnProfProgressedCB_default (void *obj, morapi_DnnProf *i_prof)
morapi_Result  morapi_DnnProf_static_readDnnFileName (morapi_Env *env, morapi_Char *o_buffer, morapi_Int32 *io_buffer_size, const morapi_Char *i_prof_filename, const void *i_password, morapi_Int32 i_password_len)


Detailed Description

Dnn profiling for tuning.

Profiles and optimizes the dnn on the target device, then makes a recipe for tuning.


Typedef Documentation


morapi_DnnProfProgressedCB

typedef void(* morapi_DnnProfProgressedCB) (void *, morapi_DnnProf *)

Callback function for profiling progress.


Enumeration Type Documentation


morapi_DnnProfEstimateMode

enum morapi_DnnProfEstimateMode

Estimation mode of profiling data.

Enumerator
MORAPI_DNN_PROF_ESTIMATE_MODE_MIN 

Min estimation.

MORAPI_DNN_PROF_ESTIMATE_MODE_AVE 

Average estimation.

MORAPI_DNN_PROF_ESTIMATE_MODE_ROBUST 

Robust estimation.


Function Documentation


morapi_DnnProfProgressedCB_default()

void morapi_DnnProfProgressedCB_default (void * obj,
                                         morapi_DnnProf * i_prof)

Default callback function for profiling progress.

Parameters

  • obj : this argument is not used.
  • i_prof : the profiler object that calls the callback.


morapi_DnnProf_static_readDnnFileName()

morapi_Result morapi_DnnProf_static_readDnnFileName (morapi_Env * env,
                                                     morapi_Char * o_buffer,
                                                     morapi_Int32 * io_buffer_size,
                                                     const morapi_Char * i_prof_filename,
                                                     const void * i_password,
                                                     morapi_Int32 i_password_len)

Reads a dnn file name from a profile file name.