STT-tensorflow/tensorflow/lite/micro/xcore
Advait Jain b7a121f7d2 Manually fix licenses for the files to ensure consistent formatting.
Once this change is merged, we can turn on a presubmit check that tests
for the licenses.

Addresses http://b/175315163
2020-12-14 14:11:32 -08:00
..
debug_log.cc
README.md

Quickstart to install tools and run unit tests:

$ make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" clean clean_downloads && make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" test_greedy_memory_planner_test || true && pushd tensorflow/lite/micro/tools/make/downloads/xtimecomposer/xTIMEcomposer/15.0.0/ && source SetEnv && popd  && make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" test

(add -jN to the final make command to run builds / tests in N parallel threads)

Background information:

  • To start from a fresh repo (this will also remove non-xcore builds and downloads): $ make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" clean clean_downloads

  • To force xcore.ai tools download from a clean repo: $ make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" test_greedy_memory_planner_test (this will fail to build the test, but if it succeeds because you already have tools it will exit quickly)

  • To set up environment variables correctly run the following from the top tensorflow directory: $ make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" test $ pushd ./tensorflow/lite/micro/tools/make/downloads/xtimecomposer/xTIMEcomposer/15.0.0/ && source SetEnv && popd $ make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" test

  • Assuming tools are already set up the following are the most commonly used commands: $ make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" build $ make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" test $ make -f tensorflow/lite/micro/tools/make/Makefile TARGET="xcore" < name_of_example i.e. hello_world_test >