MCPcopy Create free account
hub / github.com/OAID/Tengine / InitRegistry

Method InitRegistry

executor/operator/ref/ref_concat.cpp:61–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61void RefConcat::InitRegistry(void)
62{
63#ifdef CONFIG_KERNEL_FP32
64 kernel_registry.Register(( ref_concat_t )ref_concat_fp32, TENGINE_LAYOUT_NCHW, TENGINE_DT_FP32);
65 kernel_registry.Register(( ref_concat_t )ref_concat_fp32, TENGINE_LAYOUT_NHWC, TENGINE_DT_FP32);
66#endif
67#ifdef CONFIG_KERNEL_FP16
68 kernel_registry.Register(( ref_concat_t )ref_concat_fp16, TENGINE_LAYOUT_NCHW, TENGINE_DT_FP16);
69 kernel_registry.Register(( ref_concat_t )ref_concat_fp16, TENGINE_LAYOUT_NHWC, TENGINE_DT_FP16);
70#endif
71#ifdef CONFIG_KERNEL_INT8
72 kernel_registry.Register(( ref_concat_t )ref_concat_int8, TENGINE_LAYOUT_NCHW, TENGINE_DT_INT8);
73 kernel_registry.Register(( ref_concat_t )ref_concat_int8, TENGINE_LAYOUT_NHWC, TENGINE_DT_INT8);
74#endif
75#ifdef CONFIG_KERNEL_UINT8
76 kernel_registry.Register(( ref_concat_t )ref_concat_uint8, TENGINE_LAYOUT_NCHW, TENGINE_DT_UINT8);
77 kernel_registry.Register(( ref_concat_t )ref_concat_uint8, TENGINE_LAYOUT_NHWC, TENGINE_DT_UINT8);
78#endif
79}
80
81bool RefConcat::Prerun(Node* node)
82{

Callers

nothing calls this directly

Calls 1

RegisterMethod · 0.45

Tested by

no test coverage detected