Merge pull request #28593 from csukuangfj:fix-typos
PiperOrigin-RevId: 255334051
This commit is contained in:
commit
51b4b90060
@ -5,7 +5,7 @@
|
|||||||
* **hanning.cc**: Precomputed
|
* **hanning.cc**: Precomputed
|
||||||
[Hann window](https://en.wikipedia.org/wiki/Hann_function) for use in the
|
[Hann window](https://en.wikipedia.org/wiki/Hann_function) for use in the
|
||||||
preprocessor. This file is created in ../create_constants.py
|
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
|
* **preprocessor.cc**: CMSIS version of the preprocessor
|
||||||
* **sin_1k.cc**: A 1 kHZ sinusoid used for comparing the CMSIS preprocessor
|
* **sin_1k.cc**: A 1 kHZ sinusoid used for comparing the CMSIS preprocessor
|
||||||
with the Micro-Lite fixed_point preprocessor
|
with the Micro-Lite fixed_point preprocessor
|
||||||
|
@ -48,7 +48,7 @@ def to_h(_, varname, directory=''):
|
|||||||
xstr += '#include <cstdint>\n\n'
|
xstr += '#include <cstdint>\n\n'
|
||||||
xstr += 'extern const int g_{}_size;\n'.format(varname)
|
xstr += 'extern const int g_{}_size;\n'.format(varname)
|
||||||
xstr += 'extern const int16_t g_{}[];\n\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:
|
with open(directory + varname + '.h', 'w') as f:
|
||||||
f.write(xstr)
|
f.write(xstr)
|
||||||
|
@ -251,7 +251,7 @@ tensorflow/examples/speech_commands:train -- \
|
|||||||
--wanted_words="yes,no" --silence_percentage=25 --unknown_percentage=25 --quantize=1
|
--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:
|
finally do not forget to remove the instance when training is done:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -36,7 +36,7 @@ TfLiteStatus GetAudioSamples(tflite::ErrorReporter* error_reporter,
|
|||||||
// Returns the time that audio data was last captured in milliseconds. There's
|
// 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
|
// 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
|
// 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
|
// The reference implementation of this function just returns a constantly
|
||||||
// incrementing value for each call, since it would need a non-portable platform
|
// 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
|
// call to access time information. For real applications, you'll need to write
|
||||||
|
@ -150,17 +150,13 @@ ARDUINO_PROJECT_FILES := \
|
|||||||
|
|
||||||
ALL_PROJECT_TARGETS :=
|
ALL_PROJECT_TARGETS :=
|
||||||
|
|
||||||
KEIL_PROJECT_FILES := \
|
|
||||||
README_KEIL.md \
|
|
||||||
keil_project.uvprojx
|
|
||||||
|
|
||||||
include $(MAKEFILE_DIR)/third_party_downloads.inc
|
include $(MAKEFILE_DIR)/third_party_downloads.inc
|
||||||
THIRD_PARTY_DOWNLOADS :=
|
THIRD_PARTY_DOWNLOADS :=
|
||||||
$(eval $(call add_third_party_download,$(GEMMLOWP_URL),$(GEMMLOWP_MD5),gemmlowp,))
|
$(eval $(call add_third_party_download,$(GEMMLOWP_URL),$(GEMMLOWP_MD5),gemmlowp,))
|
||||||
$(eval $(call add_third_party_download,$(FLATBUFFERS_URL),$(FLATBUFFERS_MD5),flatbuffers,))
|
$(eval $(call add_third_party_download,$(FLATBUFFERS_URL),$(FLATBUFFERS_MD5),flatbuffers,))
|
||||||
|
|
||||||
# These target-specific makefiles should modify or replace options like
|
# 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
|
# based on platforms or architectures should happen within these files, to
|
||||||
# keep this main makefile focused on the sources and dependencies.
|
# keep this main makefile focused on the sources and dependencies.
|
||||||
include $(wildcard $(MAKEFILE_DIR)/targets/*_makefile.inc)
|
include $(wildcard $(MAKEFILE_DIR)/targets/*_makefile.inc)
|
||||||
|
2
third_party/flatbuffers/build_defs.bzl
vendored
2
third_party/flatbuffers/build_defs.bzl
vendored
@ -37,7 +37,7 @@ def flatbuffer_library_public(
|
|||||||
flatc_args: Optional, list of additional arguments to pass to flatc.
|
flatc_args: Optional, list of additional arguments to pass to flatc.
|
||||||
reflection_name: Optional, if set this will generate the flatbuffer
|
reflection_name: Optional, if set this will generate the flatbuffer
|
||||||
reflection binaries for the schemas.
|
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.
|
output_to_bindir: Passed to genrule for output to bin directory.
|
||||||
"""
|
"""
|
||||||
include_paths_cmd = ["-I %s" % (s) for s in include_paths]
|
include_paths_cmd = ["-I %s" % (s) for s in include_paths]
|
||||||
|
Loading…
Reference in New Issue
Block a user