21#ifndef INCLUDE_SHL_UTILS_H_ 
   22#define INCLUDE_SHL_UTILS_H_ 
   31#if (!defined SHL_BUILD_RTOS) 
   35#ifdef SHL_MCONF_CONFIG 
   36#include "mconf_config.h" 
   44    struct shl_node **input;
 
   45    struct shl_node **output;
 
   48    struct shl_node **layer;
 
   53struct shl_gref_target_data {
 
   54    struct shl_ref_graph *graph;
 
   55    int is_hybrid_quantization_type;
 
   59void shl_get_top5(
float *buf, uint32_t size, 
float *prob, uint32_t *cls);
 
   61uint64_t shl_get_timespec();
 
   62void shl_print_time_interval(uint64_t start, uint64_t end, 
const char *msg);
 
   63void shl_statistical_mean_std(
float *data, 
int sz);
 
   64void shl_quantize_multiplier(
double double_multiplier, int32_t *quantized_multiplier,
 
   67void shl_register_runtime_callback(
int api, 
void *cb);
 
   68void shl_register_op_callback(
int api, 
void *cb);
 
   81struct shl_cb_op_list {
 
   82    struct shl_cb_op_list *next;
 
   88struct shl_cb_op_list *shl_cb_list_end(
struct shl_cb_op_list *list);
 
   92struct shl_bm_sections {
 
   95    int32_t params_offset;
 
  103struct shl_binary_model_section_info {
 
  105    int32_t section_info_size;
 
  107    struct shl_bm_sections sections[127];
 
  110char *shl_bm_header_str();
 
  112void shl_dump_bm_header(FILE *f);
 
  113void shl_dump_bm_section_info(FILE *f, 
struct shl_binary_model_section_info *info);
 
  114int shl_dump_bm_graph_info_section(FILE *f, 
struct csinn_session *sess);
 
  116int shl_dump_bm_graph_struct_section(FILE *f, 
struct shl_ref_graph *graph);
 
  117void shl_bm_graph_struct_load(
struct shl_ref_graph *dest, 
struct shl_ref_graph *src);
 
csinn_rmode_enum
Definition: csinn_data_structure.h:111
 
csinn_op_enum
Definition: csinn_data_structure.h:127
 
csinn_dtype_enum
Definition: csinn_data_structure.h:39
 
Definition: csinn_data_structure.h:524
 
Definition: csinn_data_structure.h:533
 
Definition: csinn_data_structure.h:502
 
Definition: csinn_data_structure.h:475