Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_51669992
tensorflow
提交
c40d0d3b
T
tensorflow
项目概览
weixin_51669992
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
16
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c40d0d3b
编写于
11月 01, 2020
作者:
T
TensorFlower Gardener
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #41344 from wwwind:16x8_conv_activation_op_tests
PiperOrigin-RevId: 340161487
上级
e500cde7
6ab2c521
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
4 deletion
+16
-4
tensorflow/lite/testing/generated_examples_zip_test.cc
tensorflow/lite/testing/generated_examples_zip_test.cc
+6
-2
tensorflow/lite/testing/zip_test_utils.py
tensorflow/lite/testing/zip_test_utils.py
+10
-2
未找到文件。
tensorflow/lite/testing/generated_examples_zip_test.cc
浏览文件 @
c40d0d3b
...
...
@@ -292,9 +292,13 @@ class OpsTest : public ::testing::TestWithParam<string> {};
TEST_P
(
OpsTest
,
RunZipTests
)
{
string
test_path_and_label
=
GetParam
();
string
test_path
=
test_path_and_label
;
string
label
=
test_path_and_label
;
size_t
end_pos
=
test_path_and_label
.
find
(
" "
);
string
test_path
=
test_path_and_label
.
substr
(
0
,
end_pos
);
string
label
=
test_path_and_label
.
substr
(
end_pos
+
1
);
if
(
end_pos
!=
string
::
npos
)
{
test_path
=
test_path_and_label
.
substr
(
0
,
end_pos
);
label
=
test_path_and_label
.
substr
(
end_pos
+
1
);
}
string
tflite_test_case
=
test_path
+
"_tests.txt"
;
string
tflite_dir
=
test_path
.
substr
(
0
,
test_path
.
find_last_of
(
"/"
));
string
test_name
=
label
.
substr
(
label
.
find_last_of
(
'/'
));
...
...
tensorflow/lite/testing/zip_test_utils.py
浏览文件 @
c40d0d3b
...
...
@@ -350,7 +350,11 @@ def make_zip_of_tests(options,
"%s=%r"
%
z
for
z
in
sorted
(
zip
(
keys
,
curr
))).
replace
(
" "
,
""
))
if
label
[
0
]
==
"/"
:
label
=
label
[
1
:]
zip_path_label
=
label_base_path
.
replace
(
".zip"
,
"_"
)
+
str
(
i
)
zip_path_label
=
label
if
len
(
os
.
path
.
basename
(
zip_path_label
))
>
245
:
zip_path_label
=
label_base_path
.
replace
(
".zip"
,
"_"
)
+
str
(
i
)
i
+=
1
if
label
in
processed_labels
:
# Do not populate data for the same label more than once. It will cause
...
...
@@ -493,7 +497,11 @@ def make_zip_of_tests(options,
archive
.
writestr
(
zip_path_label
+
"_tests.txt"
,
example_fp2
.
getvalue
(),
zipfile
.
ZIP_DEFLATED
)
zip_manifest
.
append
(
zip_path_label
+
" "
+
label
+
"
\n
"
)
zip_manifest_label
=
zip_path_label
+
" "
+
label
if
zip_path_label
==
label
:
zip_manifest_label
=
zip_path_label
zip_manifest
.
append
(
zip_manifest_label
+
"
\n
"
)
return
tflite_model_binary
,
report
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录