From c33cb90ff4181d7da08d343f7d7cae360ce7d5ad Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Fri, 22 Mar 2019 12:50:56 +0800 Subject: [PATCH] [lite/micro] fix various typos. --- tensorflow/lite/experimental/micro/README.md | 2 +- .../micro/examples/micro_speech/CMSIS/README.md | 2 +- .../micro/examples/micro_speech/CMSIS/create_constants.py | 2 +- .../lite/experimental/micro/examples/micro_speech/README.md | 2 +- .../micro/examples/micro_speech/audio_provider.h | 2 +- tensorflow/lite/experimental/micro/tools/make/Makefile | 6 +----- third_party/flatbuffers/build_defs.bzl | 2 +- 7 files changed, 7 insertions(+), 11 deletions(-) diff --git a/tensorflow/lite/experimental/micro/README.md b/tensorflow/lite/experimental/micro/README.md index b8ed89d552c..0471662f4ee 100644 --- a/tensorflow/lite/experimental/micro/README.md +++ b/tensorflow/lite/experimental/micro/README.md @@ -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 diff --git a/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/README.md b/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/README.md index 65aec34a1f7..77521951bfe 100644 --- a/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/README.md +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/README.md @@ -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 diff --git a/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/create_constants.py b/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/create_constants.py index daf7e3cde89..9ac29b757c5 100755 --- a/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/create_constants.py +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/create_constants.py @@ -48,7 +48,7 @@ def to_h(_, varname, directory=''): xstr += '#include \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) diff --git a/tensorflow/lite/experimental/micro/examples/micro_speech/README.md b/tensorflow/lite/experimental/micro/examples/micro_speech/README.md index 3068499b6cd..b9c99574be3 100644 --- a/tensorflow/lite/experimental/micro/examples/micro_speech/README.md +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/README.md @@ -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: ``` diff --git a/tensorflow/lite/experimental/micro/examples/micro_speech/audio_provider.h b/tensorflow/lite/experimental/micro/examples/micro_speech/audio_provider.h index b6906736419..fa2036543ef 100644 --- a/tensorflow/lite/experimental/micro/examples/micro_speech/audio_provider.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/audio_provider.h @@ -36,7 +36,7 @@ TfLiteStatus GetAudioSamples(tflite::ErrorReporter* error_reporter, // Returns the time that audio data was last captured in milliseconds. There's // no contract about what time zero represents, the accuracy, or the granularity // of the result. Subsequent calls will generally not return a lower value, but -// even that's not guaranteed if there's an overflow wraparound. +// even that's not guaranteed if there's an overflow wraparound. // The reference implementation of this function just returns a constantly // incrementing value for each call, since it would need a non-portable platform // call to access time information. For real applications, you'll need to write diff --git a/tensorflow/lite/experimental/micro/tools/make/Makefile b/tensorflow/lite/experimental/micro/tools/make/Makefile index 6e100987b7d..08aec97a682 100644 --- a/tensorflow/lite/experimental/micro/tools/make/Makefile +++ b/tensorflow/lite/experimental/micro/tools/make/Makefile @@ -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) diff --git a/third_party/flatbuffers/build_defs.bzl b/third_party/flatbuffers/build_defs.bzl index 235b44f7cf1..45f1d197359 100644 --- a/third_party/flatbuffers/build_defs.bzl +++ b/third_party/flatbuffers/build_defs.bzl @@ -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]