Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
码匠许师傅
Tflite Micro
提交
1bccee10
T
Tflite Micro
项目概览
码匠许师傅
/
Tflite Micro
11 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tflite Micro
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
1bccee10
编写于
4月 21, 2021
作者:
A
Advait Jain
提交者:
GitHub
4月 21, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Increase CI converage to match upstream test_all.sh (#17)
上级
5a65a54c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
100 addition
and
24 deletion
+100
-24
.github/workflows/main.yml
.github/workflows/main.yml
+43
-15
ci/sync_from_upstream_tf.sh
ci/sync_from_upstream_tf.sh
+2
-2
tensorflow/lite/micro/tools/ci_build/test_makefile.sh
tensorflow/lite/micro/tools/ci_build/test_makefile.sh
+44
-0
tensorflow/lite/micro/tools/make/targets/apollo3evb_makefile.inc
...low/lite/micro/tools/make/targets/apollo3evb_makefile.inc
+11
-7
未找到文件。
.github/workflows/main.yml
浏览文件 @
1bccee10
...
...
@@ -5,17 +5,15 @@ on:
types
:
[
labeled
]
jobs
:
check_code_style
:
arduino
:
runs-on
:
ubuntu-latest
if
:
contains(github.event.pull_request.labels.*.name, 'ci:run')
name
:
Code Style
name
:
Arduino
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Check
# TODO(#11): Update the docker image to be hosted via github packages.
uses
:
docker://jpwithers/tflite-micro-tests
with
:
args
:
/bin/sh -c "/opt/tflm/tensorflow/lite/micro/tools/ci_build/test_code_style.sh"
-
name
:
Test
run
:
|
tensorflow/lite/micro/tools/ci_build/test_arduino.sh
bazel_tests
:
runs-on
:
ubuntu-latest
...
...
@@ -23,32 +21,62 @@ jobs:
name
:
Bazel Tests
steps
:
-
uses
:
actions/checkout@v2
-
name
:
"
Set
up
bazel"
-
name
:
Set up bazel
run
:
|
sudo ci/install_bazel.sh
-
name
:
"
Test"
-
name
:
Test
run
:
|
tensorflow/lite/micro/tools/ci_build/test_bazel.sh
x86
_tests
:
cortex_m
_tests
:
runs-on
:
ubuntu-latest
if
:
contains(github.event.pull_request.labels.*.name, 'ci:run')
name
:
Makefile x86
tests
name
:
Cortex-M
tests
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Test
run
:
|
tensorflow/lite/micro/tools/ci_build/test_x86.sh
tensorflow/lite/micro/tools/ci_build/test_bluepill.sh
tensorflow/lite/micro/tools/ci_build/test_cortex_m_corstone_300.sh
tensorflow/lite/micro/tools/ci_build/test_cortex_m_generic.sh
tensorflow/lite/micro/tools/ci_build/test_sparkfun.sh
tensorflow/lite/micro/tools/ci_build/test_stm32f4.sh
bluepill_tests
:
check_code_style
:
runs-on
:
ubuntu-latest
if
:
contains(github.event.pull_request.labels.*.name, 'ci:run')
name
:
Bluepill tests
name
:
Code Style
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Check
# TODO(#11): Update the docker image to be hosted via github packages.
uses
:
docker://jpwithers/tflite-micro-tests
with
:
args
:
/bin/sh -c "/opt/tflm/tensorflow/lite/micro/tools/ci_build/test_code_style.sh"
project_generation
:
runs-on
:
ubuntu-latest
if
:
contains(github.event.pull_request.labels.*.name, 'ci:run')
name
:
Project generation
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Test
run
:
|
tensorflow/lite/micro/tools/ci_build/test_bluepill.sh
# TODO(b/184886633): the downloads should happen as part of the create_tflm_tree
# script or should optinally not be required.
make -f tensorflow/lite/micro/tools/make/Makefile third_party_downloads
tensorflow/lite/micro/tools/ci_build/test_project_generation.sh
x86_tests
:
runs-on
:
ubuntu-latest
if
:
contains(github.event.pull_request.labels.*.name, 'ci:run')
name
:
Makefile x86 tests
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Test
run
:
|
tensorflow/lite/micro/tools/ci_build/test_makefile.sh
tensorflow/lite/micro/tools/ci_build/test_x86.sh
# TODO(#13): Uncomment the lines below once we can appropriately change
# labels from PRs created from forks.
...
...
ci/sync_from_upstream_tf.sh
浏览文件 @
1bccee10
...
...
@@ -79,6 +79,6 @@ rm -rf tensorflow/lite/micro/tools/ci_build/tflm_bazel
# the rsync command and any files whose source of truth is the new TFLM repo
# should be manually restored.
git checkout
\
tensorflow/lite/micro/tools/ci_build/test_
al
l.sh
\
tensorflow/lite/micro/tools/ci_build/test_
bazel
.sh
tensorflow/lite/micro/tools/ci_build/test_
baze
l.sh
\
tensorflow/lite/micro/tools/ci_build/test_
makefile
.sh
tensorflow/lite/micro/tools/ci_build/test_makefile.sh
0 → 100755
浏览文件 @
1bccee10
#!/usr/bin/env bash
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
set
-e
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
ROOT_DIR
=
${
SCRIPT_DIR
}
/../../../../..
cd
"
${
ROOT_DIR
}
"
pwd
make
-f
tensorflow/lite/micro/tools/make/Makefile clean_downloads
DISABLE_DOWNLOADS
=
true
make
-f
tensorflow/lite/micro/tools/make/Makefile
OPTIMIZED_KERNEL_DIR
=
cmsis_nn clean
DISABLE_DOWNLOADS
=
true
if
[
-d
tensorflow/lite/micro/tools/make/downloads
]
;
then
echo
"ERROR: Downloads directory should not exist, but it does."
exit
1
fi
# Check that an incorrect optimized kernel directory results in an error.
# Without such an error, an incorrect optimized kernel directory can result in
# an unexpected fallback to reference kernels and which can be hard to debug. We
# add some complexity to the CI to make sure that we do not repeat the same
# mistake as described in http://b/183546742.
INCORRECT_CMD
=
"make -f tensorflow/lite/micro/tools/make/Makefile OPTIMIZED_KERNEL_DIR=does_not_exist clean"
EXT_LIBS_INC
=
tensorflow/lite/micro/tools/make/ext_libs/does_not_exist.inc
touch
${
EXT_LIBS_INC
}
if
${
INCORRECT_CMD
}
&> /dev/null
;
then
echo
"'
${
INCORRECT_CMD
}
' should have failed but it did not have any errors."
rm
-f
${
EXT_LIBS_INC
}
exit
1
fi
rm
-f
${
EXT_LIBS_INC
}
tensorflow/lite/micro/tools/make/targets/apollo3evb_makefile.inc
浏览文件 @
1bccee10
...
...
@@ -36,9 +36,7 @@ PLATFORM_FLAGS = \
-
DTF_LITE_MCU_DEBUG_LOG
\
-
D
__FPU_PRESENT
=
1
\
-
DARM_MATH_CM4
\
-
fno
-
rtti
\
-
fmessage
-
length
=
0
\
-
fno
-
exceptions
\
-
fno
-
unwind
-
tables
\
-
ffunction
-
sections
\
-
fdata
-
sections
\
...
...
@@ -48,24 +46,30 @@ PLATFORM_FLAGS = \
-
mthumb
\
-
mfpu
=
fpv4
-
sp
-
d16
\
-
mfloat
-
abi
=
hard
\
-
std
=
gnu
++
11
\
-
Wvla
\
-
Wall
\
-
Wextra
\
-
Wno
-
implicit
-
fallthrough
\
-
Wno
-
missing
-
field
-
initializers
\
-
Wno
-
return
-
type
\
-
Wno
-
sign
-
compare
\
-
Wno
-
strict
-
aliasing
\
-
Wno
-
type
-
limits
\
-
Wno
-
unused
-
function
\
-
Wno
-
unused
-
parameter
\
-
fno
-
delete
-
null
-
pointer
-
checks
\
-
fno
-
threadsafe
-
statics
\
-
fomit
-
frame
-
pointer
\
-
fno
-
use
-
cxa
-
atexit
\
-
nostdlib
\
-
ggdb
\
-
O3
CXXFLAGS
+=
$
(
PLATFORM_FLAGS
)
CCFLAGS
+=
$
(
PLATFORM_FLAGS
)
CXXFLAGS
+=
\
$
(
PLATFORM_FLAGS
)
\
-
fno
-
use
-
cxa
-
atexit
CCFLAGS
+=
$
(
PLATFORM_FLAGS
)
\
-
Wno
-
int
-
conversion
LDFLAGS
+=
\
-
mthumb
-
mcpu
=
cortex
-
m4
-
mfpu
=
fpv4
-
sp
-
d16
-
mfloat
-
abi
=
hard
\
-
nostartfiles
-
static
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录