macro
#define ARM_DW_SPEC_ENTRY(MATCH_FN, CALL_FN) { \ (MATCH_FN), (CALL_FN) \ }Parameters
| Name | Description |
|---|---|
MATCH_FN | |
CALL_FN |
ARM_DW_SPEC_ENTRYmacroARM_DW_ARRAY_SIZEmacroarm_depthwise_conv_input_index_nhwcfunctionarm_depthwise_conv_output_index_nhwcfunctionARM_DW_DISPATCHmacro#define ARM_DW_SPEC_ENTRY(MATCH_FN, CALL_FN) { \ (MATCH_FN), (CALL_FN) \ }Parameters
| Name | Description |
|---|---|
MATCH_FN | |
CALL_FN |
#define ARM_DW_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))Parameters
| Name | Description |
|---|---|
arr |
static int32_t arm_depthwise_conv_input_index_nhwc(int32_t x, int32_t y, int32_t c, int32_t input_x, int32_t input_ch)Parameters
| Name | Type | Description |
|---|---|---|
x | int32_t | |
y | int32_t | |
c | int32_t | |
input_x | int32_t | |
input_ch | int32_t |
static int32_t arm_depthwise_conv_output_index_nhwc( int32_t out_x, int32_t out_y, int32_t out_ch, int32_t output_x, int32_t output_ch)Parameters
| Name | Type | Description |
|---|---|---|
out_x | int32_t | |
out_y | int32_t | |
out_ch | int32_t | |
output_x | int32_t | |
output_ch | int32_t |
#define ARM_DW_DISPATCH(TABLE, COUNT, ...) do \ { \ for (size_t _i = 0; _i < (COUNT); ++_i) \ { \ if ((TABLE)[_i].match(__VA_ARGS__)) \ { \ return (TABLE)[_i].call(__VA_ARGS__); \ } \ } \ } while (0)Parameters
| Name | Description |
|---|---|
TABLE | |
COUNT | |
... |