20#ifndef INCLUDE_SHL_DEBUG_H_
21#define INCLUDE_SHL_DEBUG_H_
26 SHL_DEBUG_LEVEL_DEBUG = -2,
28 SHL_DEBUG_LEVEL_WARNING,
29 SHL_DEBUG_LEVEL_ERROR,
30 SHL_DEBUG_LEVEL_FATAL,
34#define SHL_DEBUG_CALL(func) func
35void shl_debug_debug(
const char *format, ...);
36void shl_debug_info(
const char *format, ...);
37void shl_debug_warning(
const char *format, ...);
38void shl_debug_error(
const char *format, ...);
39void shl_debug_fatal(
const char *format, ...);
40int shl_debug_callback_unset();
42#define SHL_DEBUG_CALL(func)
43inline void shl_debug_debug(
const char *format, ...) {}
44inline void shl_debug_info(
const char *format, ...) {}
45inline void shl_debug_warning(
const char *format, ...) {}
46inline void shl_debug_error(
const char *format, ...) {}
47inline void shl_debug_fatal(
const char *format, ...) {}
51int shl_debug_get_level();
52void shl_debug_set_level(
int level);
53int shl_benchmark_layer(
struct shl_node *node, uint64_t start_time, uint64_t end_time,
55int shl_dump_output_tensor(
struct shl_node *node);
114 struct csinn_cache_matmul_params *params,
const char *name);
118 struct csinn_cache_conv1d_params *params,
const char *name);
183 struct csinn_layer_norm_params *params,
const char *name);
@ CSINN_CALLBACK_UNSET
Definition: csinn_data_structure.h:427
Definition: csinn_data_structure.h:893
Definition: csinn_data_structure.h:969
Definition: csinn_data_structure.h:959
Definition: csinn_data_structure.h:705
Definition: csinn_data_structure.h:1074
Definition: csinn_data_structure.h:1117
Definition: csinn_data_structure.h:1081
Definition: csinn_data_structure.h:1024
Definition: csinn_data_structure.h:780
Definition: csinn_data_structure.h:1162
Definition: csinn_data_structure.h:553
Definition: csinn_data_structure.h:575
Definition: csinn_data_structure.h:854
Definition: csinn_data_structure.h:1067
Definition: csinn_data_structure.h:1060
Definition: csinn_data_structure.h:984
Definition: csinn_data_structure.h:753
Definition: csinn_data_structure.h:837
Definition: csinn_data_structure.h:596
Definition: csinn_data_structure.h:849
Definition: csinn_data_structure.h:543
Definition: csinn_data_structure.h:924
Definition: csinn_data_structure.h:919
Definition: csinn_data_structure.h:1011
Definition: csinn_data_structure.h:715
Definition: csinn_data_structure.h:727
Definition: csinn_data_structure.h:746
Definition: csinn_data_structure.h:936
Definition: csinn_data_structure.h:1109
Definition: csinn_data_structure.h:991
Definition: csinn_data_structure.h:763
Definition: csinn_data_structure.h:605
Definition: csinn_data_structure.h:686
Definition: csinn_data_structure.h:787
Definition: csinn_data_structure.h:808
Definition: csinn_data_structure.h:1033
Definition: csinn_data_structure.h:676
Definition: csinn_data_structure.h:1047
Definition: csinn_data_structure.h:825
Definition: csinn_data_structure.h:773
Definition: csinn_data_structure.h:843
Definition: csinn_data_structure.h:636
Definition: csinn_data_structure.h:649
Definition: csinn_data_structure.h:666
Definition: csinn_data_structure.h:1053
Definition: csinn_data_structure.h:758
Definition: csinn_data_structure.h:1002
Definition: csinn_data_structure.h:832
Definition: csinn_data_structure.h:1097
Definition: csinn_data_structure.h:671
Definition: csinn_data_structure.h:661
Definition: csinn_data_structure.h:862
Definition: csinn_data_structure.h:692
Definition: csinn_data_structure.h:951
Definition: csinn_data_structure.h:941
Definition: csinn_data_structure.h:978
Definition: csinn_data_structure.h:871
Definition: csinn_data_structure.h:929
Definition: csinn_data_structure.h:879
Definition: csinn_data_structure.h:1088
Definition: csinn_data_structure.h:475
Definition: csinn_data_structure.h:886
Definition: csinn_data_structure.h:1103
Definition: csinn_data_structure.h:818
Definition: csinn_data_structure.h:627
Definition: csinn_data_structure.h:912
Definition: csinn_data_structure.h:907
Definition: csinn_data_structure.h:698