D | dnn_backend_native_layer_pad.c | 52 static int before_get_buddy(int given, int paddings, LayerPadModeParam mode) in before_get_buddy() argument 55 return (2 * paddings - 1 - given); in before_get_buddy() 57 return (2 * paddings - given); in before_get_buddy() 64 static int after_get_buddy(int given, int border, LayerPadModeParam mode) in after_get_buddy() argument 67 int offset = given - border; in after_get_buddy() 70 int offset = given - border; in after_get_buddy() 156 int given = number + before_paddings + n; in ff_dnn_execute_layer_pad() local 157 float *dst = output + given * new_hwc_stride; in ff_dnn_execute_layer_pad() 163 int buddy = after_get_buddy(given, number + before_paddings, params->mode); in ff_dnn_execute_layer_pad() 187 int given = height + before_paddings + h; in ff_dnn_execute_layer_pad() local [all …]
|