message: replace MLI switchers with specializations in person_detection_generation
diff: @@ -4,6 +4,7 @@ ifeq ($(TARGET), arc_emsdp)
  # for experimental person detection example. In particular:
  # - Use Linker command file with better usage of fast memory
  # - Stripout TFLM reference code by default.
  +# - replace mli switchers with specialized kernels for smaller code size
  person_detection_HDRS += \
  person_detection_int8_patch.txt
  @@ -11,11 +12,22 @@ ifeq ($(TARGET), arc_emsdp)
  person_detection_TEST_HDRS += \
  person_detection_int8_patch.txt
  + ARC_MLI_KERNELS_PATH = /tensorflow/lite/micro/kernels/arc_mli
  -%/person_detection_int8_patch.txt: %/emsdp.lcf %/Makefile
  +%/person_detection_int8_patch.txt: %/emsdp.lcf %/Makefile %$(ARC_MLI_KERNELS_PATH)/conv.cc %$(ARC_MLI_KERNELS_PATH)/conv.cc %$(ARC_MLI_KERNELS_PATH)/depthwise_conv.cc %$(ARC_MLI_KERNELS_PATH)/pooling.cc
  @cp tensorflow/lite/micro/examples/person_detection_experimental/arc_emsdp/emsdp.lcf $<
  @echo emsdp.lcf > $@
  @sed -E -i 's#MLI_ONLY *\?= *false#MLI_ONLY \?= true#' $(word 2, $^)
  - @echo Makefile > $@
  + @echo Makefile >> $@
  + @sed -E -i 's#mli_krn_conv2d_nhwc_sa8_sa8_sa32#mli_krn_conv2d_nhwc_sa8_sa8_sa32_k1x1_nopad#' $(word 3, $^)
  + @echo $(word 3, $^) >> $@
  + @sed -E -i 's#mli_krn_depthwise_conv2d_hwcn_sa8_sa8_sa32#mli_krn_depthwise_conv2d_hwcn_sa8_sa8_sa32_k3x3_krnpad#' $(word 4, $^)
  + @echo $(word 4, $^) >> $@
  + @sed -E -i 's#mli_krn_avepool_hwc_sa8#mli_krn_avepool_hwc_sa8_k3x3_nopad#' $(word 5, $^)
  + @sed -E -i 's#mli_krn_maxpool_hwc_sa8\(in_ptr, \&cfg, out_ptr\);#{\
  + TF_LITE_KERNEL_LOG(context, \"Max pooling is removed from the application\");\
  + return kTfLiteError;\
  + }#' $(word 5, $^)
  + @echo $(word 5, $^) >> $@
  endif
  