1. 26 5月, 2023 1 次提交
  2. 11 3月, 2023 1 次提交
    • A
      Explicitly use TfLiteRegistration_V1 in TFLM. (#1817) · 29b683a3
      Advait Jain 提交于
      Change generated with the following command:
      ```bash
      cd tensorflow/lite/micro/
      sed -i 's/TfLiteRegistration/TfLiteRegistration_V1/g' `find . -name "*.h" -o -name "*.cc"`
      cd -
      cd third_party/hexagon/
      sed -i 's/TfLiteRegistration/TfLiteRegistration_V1/g' `find . -name "*.h" -o -name "*.cc"`
      cd -
      tensorflow/lite/micro/tools/ci_build/test_code_style.sh --fix_formatting
      ```
      
      BUG=http://b/272808609
      29b683a3
  3. 21 9月, 2022 1 次提交
  4. 04 8月, 2022 1 次提交
  5. 22 7月, 2022 1 次提交
  6. 04 5月, 2022 1 次提交
    • P
      Enable -Wmissing-field-initializers and update all registration (#1084) · 1bc98621
      Pauline Sho 提交于
      * Enable -Wmissing-field-initializers and update all registration
      references
      
      In https://github.com/tensorflow/tflite-micro/pull/1082/, we disabled
      the compiler error as a workaround for a successful upstream sync from
      TFLite. This PR re-enables the error after addressing all errors. A new
      `RegisterOp` API is added, and all prior TfLiteRegistration struct
      initializations are updated to use the new API. At the minimum, this
      ensures that such additions in future will only require an update to
      RegisterOp if TFLM doesn't use that field.
      
      BUG=b/230507399
      
      * Added new RegisterOpWithFree for LSTM
      
      * Remove LSTM Free
      
      * Changed inline to normal function to save code size
      
      * Changed inline to normal function to save code size
      
      * Replace cmsis_nn static initialization with RegisterOp
      
      * Removed extra code
      
      * Add dropped namespace in hard_swish
      1bc98621
  7. 07 4月, 2022 1 次提交
  8. 14 9月, 2021 1 次提交
  9. 27 8月, 2021 1 次提交
  10. 16 6月, 2021 1 次提交
    • A
      Add Hexagon optimized kernels. (#160) · 217ad9fc
      Advait Jain 提交于
      * Add Hexagon optimized kernels.
      
       * Hexagon optimized kernels copied from https://source.codeaurora.org/quic/embedded_ai/tensorflow at 2d052806c211144875c89315a4fc6f1393064cf6
       * Changed the include paths and directory structure a bit.
       * Modified Makefile to allow optimized kernels to be in a separate directory
       * Path to the Hexagon lib is now specified on the command line.
      
      Verified that the optimized kernels are properly built and linked with:
      
      ```
      make -f tensorflow/lite/micro/tools/make/Makefile TARGET=hexagon OPTIMIZED_KERNEL_DIR=hexagon OPTIMIZED_KERNEL_DIR_PREFIX=third_party HEXAGON_TFLM_LIB=~/Qualcomm/tflm_google/hexagon_tflm_core.a  -j8 run_keyword_benchmark
      ```
      
      Gives:
      ```
      KeywordRunNIerations(1) took 52608 ticks (52 ms)
      ```
      
      Whereas reference kernels with:
      ```
      make -f tensorflow/lite/micro/tools/make/Makefile TARGET=hexagon  -j8 run_keyword_benchmark
      ```
      
      Gives:
      ```
      KeywordRunNIerations(1) took 110248 ticks (110 ms)
      ```
      
      BUG=http://b/190754463
      
      * enable code style checks for third_party as well.
      
      * clang-formatted the hexagon kernels.
      
      * Rename to keep scope focused on what we currently need.
      217ad9fc
  11. 10 4月, 2021 1 次提交