adafruit / Adafruit_TFLite_Micro_Speech

This is a 'Arduino-ified' version of the TensorFlow Lite (experimental) micro speech example.
Other
89 stars 16 forks source link

opt depthwise #1

Closed ladyada closed 5 years ago

ladyada commented 5 years ago

to get a big speedup you can replace the reference depthwise_conv.cc at https://github.com/adafruit/Adafruit_TFLite_Micro_Speech/blob/master/src/tensorflow/lite/experimental/micro/kernels/depthwise_conv.cpp with the version we optimized for the speech model here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/experimental/micro/kernels/portable_optimized/depthwise_conv.cc. It should be a drop-in replacement.