21#ifndef INCLUDE_SHL_GREF_H_
22#define INCLUDE_SHL_GREF_H_
184int shl_gref_depthwise_conv2d_relu_infer_shape(
struct csinn_tensor *input,
193int shl_gref_depthwise_conv2d_relu6_infer_shape(
struct csinn_tensor *input,
218int shl_gref_fullyconnected_relu_infer_shape(
struct csinn_tensor *input,
282int shl_gref_non_max_suppression_infer_shape(
struct csinn_tensor *input0,
932 struct csinn_layer_norm_params *params);
935 struct csinn_layer_norm_params *params);
939 struct csinn_cache_matmul_params *params);
942 struct csinn_cache_matmul_params *params);
946 struct csinn_cache_conv1d_params *params);
949 struct csinn_cache_conv1d_params *params);
961struct shl_ref_graph *shl_subgraph_establish(
struct shl_ref_graph *ograph);
962struct shl_ref_graph *shl_gref_get_graph(
struct csinn_session *sess);
963int shl_gref_graph_insert(
struct shl_node *node,
struct shl_ref_graph *graph);
964void shl_gref_post_dfs(
struct shl_ref_graph *graph,
965 void (*fvisit)(
struct shl_ref_graph *,
struct shl_node *));
966int shl_gref_is_root_node(
struct shl_ref_graph *graph,
struct shl_node *node);
967struct shl_node *shl_gref_get_input_subgraph(
struct shl_ref_graph *graph,
struct shl_node *node,
969void shl_gref_reset_graph_visit(
struct shl_ref_graph *graph);
970void shl_gref_update_input_output(
struct shl_ref_graph *graph,
int index);
981 uint32_t outputs_count,
const char *url);
983void shl_subgraph_alloc(
struct shl_node *node,
struct shl_ref_graph *ograph,
984 struct shl_ref_graph *ggraph);
985int shl_subgraph_setup(
struct shl_node *n);
986int shl_subgraph_deinit(
struct shl_node *n);
987int shl_subgraph_run_init(
struct shl_node *n);
988int shl_subgraph_run(
struct shl_node *n);
989int shl_subgraph_run_deinit(
struct shl_node *n,
struct shl_ref_graph *graph);
991struct shl_ref_graph *shl_subgraph_generate(
struct shl_ref_graph *ograph);
992struct shl_ref_graph *shl_subgraph_rebuild(
struct shl_ref_graph *subgraph);
993struct shl_ref_graph *shl_subgraph_topology_sort(
struct shl_ref_graph *graph);
994void shl_subgraph_fvisit_fuse(
struct shl_ref_graph *graph,
struct shl_node *node);
995void shl_subgraph_fvisit_print(
struct shl_ref_graph *graph,
struct shl_node *node);
996int shl_subgraph_get_device(
struct shl_node *node);
997void *shl_gref_runtime_callback(
int api);
1016int shl_gref_call_layer_func(
void *fn,
struct shl_node *node);
1017struct csinn_callback *shl_gref_best_callback(
struct shl_node *node);
1018int shl_gref_size_align(
int orig,
int align);
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:524
Definition: csinn_data_structure.h:1117
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:502
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