Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Below are some tips that might be useful and improve the development experience.

* Add a git hook to check for code style prior to pushing changes:
```
cp tensorflow/lite/micro/tools/dev_setup/pre-push.tflm .git/hooks/pre-push
cp ci/pre-push.sh .git/hooks/pre-push
```

# Development Workflow Notes
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ inline void ConvPerChannel(
}
}


// Fixed-point per-channel-quantization convolution reference kernel.
// 16-bit data and 8-bit filter
template <typename AccumScalar>
Expand Down
8 changes: 4 additions & 4 deletions tensorflow/lite/micro/tools/Makefile.inc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
MICROLITE_TOOL_ROOT_DIR := $(TENSORFLOW_ROOT)tensorflow/lite/micro/tools/

LAYER_BY_LAYER_OUPUT_SRCS := \
$(MICROLITE_TOOL_ROOT_DIR)/layer_by_layer.cc \
LAYER_BY_LAYER_OUTPUT_SRCS := \
$(MICROLITE_TOOL_ROOT_DIR)layer_by_layer.cc \

LAYER_BY_LAYER_OUPUT_HDRS := \
LAYER_BY_LAYER_OUTPUT_HDRS := \
$(MICROLITE_TOOL_ROOT_DIR)benchmarking/op_resolver.h \

ifneq ($(TARGET), $(filter $(TARGET), cortex_m_corstone_300 riscv32_generic hexagon))
$(eval $(call microlite_test,layer_by_layer_output_tool,\
$(LAYER_BY_LAYER_OUPUT_SRCS),$(LAYER_BY_LAYER_OUPUT_HDRS),))
$(LAYER_BY_LAYER_OUTPUT_SRCS),$(LAYER_BY_LAYER_OUTPUT_HDRS),))
endif
1 change: 0 additions & 1 deletion tensorflow/lite/micro/tools/ci_build/check_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
]

EXCLUDES = (
"kernels/internal/reference/integer_ops/",
"python_requirements.in",
"tools/make/downloads",
"BUILD",
Expand Down
12 changes: 6 additions & 6 deletions tensorflow/lite/micro/tools/ci_build/test_code_style.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ end_group
# File Exclusions for Formatting
############################################################

EXCLUDES_REGEX="(\.github|third_party/hexagon|third_party/tf_c_headers|third_party/tflite_c_headers|third_party/xtensa|ci/|kernels/internal/reference/integer_ops/|kernels/internal/reference/reference_ops\.h|kernels/internal/types\.h|experimental|_generated\.(h|py)$|\.inc$|\.md$)"
CPP_EXCLUDES="(\.github|third_party/|ci/|_generated\.(h|py)$|_generated_data\.(h|cc)$)"
PY_EXCLUDES="(\.github|third_party/|ci/|_generated\.(h|py)$)"
BUILD_EXCLUDES="(\.github|ci/|tools/make/downloads)"

CPP_FILES=$(git ls-files "*.cc" "*.h" "*.c" | grep -v -E "${EXCLUDES_REGEX}")
PY_FILES=$(git ls-files "*.py" | grep -v -E "${EXCLUDES_REGEX}")
BUILD_FILES=$(git ls-files "*BUILD" "*BUILD.bazel" "*.bzl" | grep -v -E "${EXCLUDES_REGEX}")
CPP_FILES=$(git ls-files "*.cc" "*.h" "*.c" | grep -v -E "${CPP_EXCLUDES}")
PY_FILES=$(git ls-files "*.py" | grep -v -E "${PY_EXCLUDES}")
BUILD_FILES=$(git ls-files "*BUILD" "*BUILD.bazel" "*.bzl" | grep -v -E "${BUILD_EXCLUDES}")

############################################################
# C/C++ Formatting Check (clang-format)
Expand Down Expand Up @@ -208,8 +210,6 @@ end_group
start_group "Disallowed Patterns (<assert>)"
ASSERT_PATHSPEC=\
"${CHECK_CONTENTS_PATHSPEC}"\
" :(exclude)micro/examples/micro_speech/esp/ringbuf.c"\
" :(exclude)micro/experimental/*"\
" :(exclude)micro/kernels/internal/*"\
" :(exclude)*\.ipynb"\
" :(exclude)*\.py"\
Expand Down
2 changes: 1 addition & 1 deletion tflite_micro.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def create_namespace_module(name, relative_path):


# Inject submodules for all top-level directories
for name in ["tensorflow", "python", "tools", "signal", "third_party"]:
for name in ["tensorflow", "python", "signal", "third_party"]:
full_name = __name__ + "." + name
if full_name not in sys.modules:
sys.modules[full_name] = create_namespace_module(full_name, name)
Loading