Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleSlim
提交
2be7d257
P
PaddleSlim
项目概览
PaddlePaddle
/
PaddleSlim
大约 2 年 前同步成功
通知
51
Star
1434
Fork
344
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
53
列表
看板
标记
里程碑
合并请求
16
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleSlim
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
53
Issue
53
列表
看板
标记
里程碑
合并请求
16
合并请求
16
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2be7d257
编写于
11月 08, 2019
作者:
W
wanghaoshuang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix format.
上级
a7270cfb
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
35 deletion
+20
-35
paddleslim/nas/search_space/mobilenetv2_space.py
paddleslim/nas/search_space/mobilenetv2_space.py
+20
-35
未找到文件。
paddleslim/nas/search_space/mobilenetv2_space.py
浏览文件 @
2be7d257
...
@@ -57,47 +57,32 @@ class MobileNetV2Space(SearchSpaceBase):
...
@@ -57,47 +57,32 @@ class MobileNetV2Space(SearchSpaceBase):
each line in the following represent the index of the [expansion_factor, filter_num, repeat_num, kernel_size]
each line in the following represent the index of the [expansion_factor, filter_num, repeat_num, kernel_size]
"""
"""
# original MobileNetV2
# original MobileNetV2
return
[
# yapf: disable
4
,
# 1, 16, 1
return
[
4
,
# 1, 16, 1
4
,
4
,
5
,
1
,
0
,
# 6, 24, 1
5
,
4
,
5
,
1
,
0
,
# 6, 24, 2
1
,
4
,
4
,
2
,
0
,
# 6, 32, 3
0
,
# 6, 24, 1
4
,
4
,
3
,
0
,
# 6, 64, 4
4
,
4
,
5
,
2
,
0
,
# 6, 96, 3
5
,
4
,
7
,
2
,
0
,
# 6, 160, 3
1
,
4
,
9
,
0
,
0
]
# 6, 320, 1
0
,
# 6, 24, 2
# yapf: enable
4
,
4
,
2
,
0
,
# 6, 32, 3
4
,
4
,
3
,
0
,
# 6, 64, 4
4
,
5
,
2
,
0
,
# 6, 96, 3
4
,
7
,
2
,
0
,
# 6, 160, 3
4
,
9
,
0
,
0
]
# 6, 320, 1
def
range_table
(
self
):
def
range_table
(
self
):
"""
"""
get range table of current search space
get range table of current search space
"""
"""
# head_num + 7 * [multiple(expansion_factor), filter_num, repeat, kernel_size]
# head_num + 7 * [multiple(expansion_factor), filter_num, repeat, kernel_size]
return
[
# yapf: disable
7
,
5
,
8
,
6
,
2
,
5
,
8
,
6
,
2
,
5
,
8
,
6
,
2
,
5
,
8
,
6
,
2
,
5
,
10
,
6
,
2
,
5
,
return
[
7
,
10
,
6
,
2
,
5
,
12
,
6
,
2
5
,
8
,
6
,
2
,
]
5
,
8
,
6
,
2
,
5
,
8
,
6
,
2
,
5
,
8
,
6
,
2
,
5
,
10
,
6
,
2
,
5
,
10
,
6
,
2
,
5
,
12
,
6
,
2
]
# yapf: enable
def
token2arch
(
self
,
tokens
=
None
):
def
token2arch
(
self
,
tokens
=
None
):
"""
"""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录