...
 
Commits (5)
    https://gitcode.net/xusiwei1236/tflite-micro/-/commit/ac52be1e52a63f4183cb903454e56c5976c5b6f5 Generate integration_test Makefile with correct prefixed file path in GENERAT... 2023-05-23T06:43:23+00:00 TANMAY DAS 16020637+tanmaydas82@users.noreply.github.com BUG=<a href="http://b/282976218" rel="nofollow noreferrer noopener" target="_blank">http://b/282976218</a> Command used to generate the test and verifyed it is working : ``` bazel-bin/tensorflow/lite/micro/integration_tests/generate_per_layer_tests --input_tflite_file=/tmp/seanet_cca_quantized.tflite --output_dir=tensorflow/lite/micro/integration_tests/seanet/transpose_conv ``` https://gitcode.net/xusiwei1236/tflite-micro/-/commit/9eaf512939c3f2e79b84214c2a5319a2e6f6d0c9 Added STRIDED_SLICE and CONCAT to simple ops in requantize_flatbuffer.py (#1994) 2023-05-24T03:00:07+00:00 Artem Dementyev artemd@google.com adding simple ops to requantize_flatbuffer. BUG=<a href="http://b/283242131" rel="nofollow noreferrer noopener" target="_blank">http://b/283242131</a> https://gitcode.net/xusiwei1236/tflite-micro/-/commit/2e6a3712939de2da6dd42e553a4e761bc42f4e98 Update documentation since hello world example changed name (#1972) 2023-05-24T05:06:50+00:00 Måns Nilsson mans.nilsson@arm.com BUG=hello world example has changed name from test_hello_world_test to test_evaluate_cc_test https://gitcode.net/xusiwei1236/tflite-micro/-/commit/6eff07b78d09aa004c67780640881d9812537d0f Zero initialize strided slice op params. (#1980) 2023-05-24T05:36:35+00:00 alankelly alankelly@google.com This is so that a new field may safely be added. BUG=<a href="http://b/260574895" rel="nofollow noreferrer noopener" target="_blank">http://b/260574895</a> https://gitcode.net/xusiwei1236/tflite-micro/-/commit/73aa99baa02427fe29ca84ae16a130dab47d6bb9 Update bazel install script path (#1995) 2023-05-24T21:29:50+00:00 RJ Ascani rjascani@google.com The bazel install script path was changed from ci/install_bazel.sh to ci/install_bazelisk.sh. This commit updates the CONTRIBUTING doc with the new path. BUG=doc fix
......@@ -160,7 +160,7 @@ Below are some tips that might be useful and improve the development experience.
* Code search the [TfLite Micro codebase](https://sourcegraph.com/github.com/tensorflow/tflite-micro@main)
on Sourcegraph. And optionally install the [plugin that enables GitHub integration](https://docs.sourcegraph.com/integration/github#github-integration-with-sourcegraph).
* Install [bazel](ci/install_bazel.sh) and [buildifier](ci/install_buildifier.sh).
* Install [bazel](ci/install_bazelisk.sh) and [buildifier](ci/install_buildifier.sh).
* Install the latest clang and clang-format. For example, [here](ci/Dockerfile.micro)
is the what we do for the TFLM continuous integration Docker container.
......
......@@ -44,5 +44,5 @@ make -j -f tensorflow/lite/micro/tools/make/Makefile TARGET=cortex_m_corstone_30
make -j -f tensorflow/lite/micro/tools/make/Makefile TARGET=cortex_m_corstone_300 TARGET_ARCH=cortex-m55 test_kernel_fully_connected_test
make -j -f tensorflow/lite/micro/tools/make/Makefile OPTIMIZED_KERNEL_DIR=cmsis_nn TARGET=cortex_m_corstone_300 TARGET_ARCH=cortex-m7+fp test_kernel_fully_connected_test
make -j -f tensorflow/lite/micro/tools/make/Makefile TARGET=cortex_m_corstone_300 TARGET_ARCH=cortex-m3 test_kernel_fully_connected_test
make -j -f tensorflow/lite/micro/tools/make/Makefile TARGET=cortex_m_corstone_300 TARGET_ARCH=cortex-m55 BUILD_TYPE=release_with_logs TOOLCHAIN=armclang test_hello_world_test
make -j -f tensorflow/lite/micro/tools/make/Makefile TARGET=cortex_m_corstone_300 TARGET_ARCH=cortex-m55 BUILD_TYPE=release_with_logs TOOLCHAIN=armclang test_network_tester_test
```
......@@ -69,7 +69,7 @@ const int kMaxDim = 4;
tflite::StridedSliceParams BuildStridedSliceParams(
StridedSliceContext* op_context) {
tflite::StridedSliceParams op_params;
tflite::StridedSliceParams op_params{};
op_params.start_indices_count = op_context->dims;
op_params.stop_indices_count = op_context->dims;
op_params.strides_count = op_context->dims;
......
......@@ -219,16 +219,18 @@ class TestDataGenerator:
-2] + '_' + output_dir_list[-1]
makefile.write(src_prefix + '_GENERATOR_INPUTS := \\\n')
for model_path in self.model_paths:
makefile.write(
model_path.split('third_party/tflite_micro/')[-1] + ' \\\n')
makefile.write('$(TENSORFLOW_ROOT)' +
model_path.split('third_party/tflite_micro/')[-1] +
' \\\n')
for csv_input in self.csv_filenames:
makefile.write(
csv_input.split('third_party/tflite_micro/')[-1] + ' \\\n')
makefile.write('$(TENSORFLOW_ROOT)' +
csv_input.split('third_party/tflite_micro/')[-1] +
' \\\n')
makefile.write('\n')
makefile.write(src_prefix + '_SRCS := \\\n')
makefile.write(
self.output_dir.split('third_party/tflite_micro/')[-1] + '/' +
test_file + ' \\\n')
makefile.write('$(TENSORFLOW_ROOT)' +
self.output_dir.split('third_party/tflite_micro/')[-1] +
'/' + test_file + ' \\\n')
makefile.write(
"$(TENSORFLOW_ROOT)tensorflow/lite/micro/python/interpreter/src/python_ops_resolver.cc \\\n"
)
......
......@@ -75,18 +75,20 @@ _COMPLEX_OP_REQUANTIZE_REGISTRATION = {
# List of tested simple operators (no weight and bias, e.g., reshape) see tensorflow/lite/schema/schema.fbs for op code names
_TESTED_SIMPLE_OPS = [
schema_py_generated.BuiltinOperator.RESHAPE,
schema_py_generated.BuiltinOperator.QUANTIZE,
schema_py_generated.BuiltinOperator.ADD,
schema_py_generated.BuiltinOperator.CONCATENATION,
schema_py_generated.BuiltinOperator.DEQUANTIZE,
schema_py_generated.BuiltinOperator.LEAKY_RELU,
schema_py_generated.BuiltinOperator.LOGISTIC,
schema_py_generated.BuiltinOperator.MEAN,
schema_py_generated.BuiltinOperator.SQUARED_DIFFERENCE,
schema_py_generated.BuiltinOperator.ADD,
schema_py_generated.BuiltinOperator.RSQRT,
schema_py_generated.BuiltinOperator.MUL,
schema_py_generated.BuiltinOperator.PAD,
schema_py_generated.BuiltinOperator.QUANTIZE,
schema_py_generated.BuiltinOperator.RESHAPE,
schema_py_generated.BuiltinOperator.RSQRT,
schema_py_generated.BuiltinOperator.SQUARED_DIFFERENCE,
schema_py_generated.BuiltinOperator.STRIDED_SLICE,
schema_py_generated.BuiltinOperator.SUB,
schema_py_generated.BuiltinOperator.LEAKY_RELU,
schema_py_generated.BuiltinOperator.LOGISTIC,
schema_py_generated.BuiltinOperator.PAD
]
_SUPPORTED_OPS = set(
......