[lite/micro] fix various typos.

This commit is contained in:
Fangjun Kuang 2019-03-22 12:50:56 +08:00
parent 7ed79962bd
commit c33cb90ff4
7 changed files with 7 additions and 11 deletions

View File

@ -615,7 +615,7 @@ As mentioned above, the one function you will need to implement for a completely
new platform is debug logging. If your device is just a variation on an existing
platform you may be able to reuse code that's already been written. To
understand what's available, begin with the default reference implementation at
[tensorflow/lite/experimental/micro/debug_log.cc](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/experimental/micro/debug_log.cc]),
[tensorflow/lite/experimental/micro/debug_log.cc](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/experimental/micro/debug_log.cc),
which uses fprintf and stderr. If your platform has this level of support for
the C standard library in its toolchain, then you can just reuse this.
Otherwise, you'll need to do some research into how your platform and device can

View File

@ -5,7 +5,7 @@
* **hanning.cc**: Precomputed
[Hann window](https://en.wikipedia.org/wiki/Hann_function) for use in the
preprocessor. This file is created in ../create_constants.py
* **hanning.h**: Header file fro hanning.cc
* **hanning.h**: Header file for hanning.cc
* **preprocessor.cc**: CMSIS version of the preprocessor
* **sin_1k.cc**: A 1 kHZ sinusoid used for comparing the CMSIS preprocessor
with the Micro-Lite fixed_point preprocessor

View File

@ -48,7 +48,7 @@ def to_h(_, varname, directory=''):
xstr += '#include <cstdint>\n\n'
xstr += 'extern const int g_{}_size;\n'.format(varname)
xstr += 'extern const int16_t g_{}[];\n\n'.format(varname)
xstr += '#endif'
xstr += '#endif // {}{}_H_'.format(tf_prepend, varname.upper())
with open(directory + varname + '.h', 'w') as f:
f.write(xstr)

View File

@ -251,7 +251,7 @@ tensorflow/examples/speech_commands:train -- \
--wanted_words="yes,no" --silence_percentage=25 --unknown_percentage=25 --quantize=1
```
After build is over follow the rest of the instrucitons from this tutorial. And
After build is over follow the rest of the instructions from this tutorial. And
finally do not forget to remove the instance when training is done:
```

View File

@ -150,17 +150,13 @@ ARDUINO_PROJECT_FILES := \
ALL_PROJECT_TARGETS :=
KEIL_PROJECT_FILES := \
README_KEIL.md \
keil_project.uvprojx
include $(MAKEFILE_DIR)/third_party_downloads.inc
THIRD_PARTY_DOWNLOADS :=
$(eval $(call add_third_party_download,$(GEMMLOWP_URL),$(GEMMLOWP_MD5),gemmlowp,))
$(eval $(call add_third_party_download,$(FLATBUFFERS_URL),$(FLATBUFFERS_MD5),flatbuffers,))
# These target-specific makefiles should modify or replace options like
# CXXFLAGS or LIBS to work for a specific targetted architecture. All logic
# CXXFLAGS or LIBS to work for a specific targeted architecture. All logic
# based on platforms or architectures should happen within these files, to
# keep this main makefile focused on the sources and dependencies.
include $(wildcard $(MAKEFILE_DIR)/targets/*_makefile.inc)

View File

@ -37,7 +37,7 @@ def flatbuffer_library_public(
flatc_args: Optional, list of additional arguments to pass to flatc.
reflection_name: Optional, if set this will generate the flatbuffer
reflection binaries for the schemas.
reflection_visiblity: The visibility of the generated reflection Fileset.
reflection_visibility: The visibility of the generated reflection Fileset.
output_to_bindir: Passed to genrule for output to bin directory.
"""
include_paths_cmd = ["-I %s" % (s) for s in include_paths]