Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleSlim
提交
cd118000
P
PaddleSlim
项目概览
PaddlePaddle
/
PaddleSlim
大约 1 年 前同步成功
通知
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看板
未验证
提交
cd118000
编写于
3月 25, 2020
作者:
W
whs
提交者:
GitHub
3月 25, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix import in windows. (#153)
上级
912a81fb
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
9 addition
and
8 deletion
+9
-8
demo/prune/train.py
demo/prune/train.py
+1
-1
demo/quant/quant_aware/train.py
demo/quant/quant_aware/train.py
+2
-2
demo/quant/quant_post/eval.py
demo/quant/quant_post/eval.py
+2
-1
demo/quant/quant_post/export_model.py
demo/quant/quant_post/export_model.py
+2
-2
demo/quant/quant_post/quant_post.py
demo/quant/quant_post/quant_post.py
+2
-2
未找到文件。
demo/prune/train.py
浏览文件 @
cd118000
...
...
@@ -8,10 +8,10 @@ import math
import
time
import
numpy
as
np
import
paddle.fluid
as
fluid
sys
.
path
[
0
]
=
os
.
path
.
join
(
os
.
path
.
dirname
(
"__file__"
),
os
.
path
.
pardir
)
from
paddleslim.prune
import
Pruner
,
save_model
from
paddleslim.common
import
get_logger
from
paddleslim.analysis
import
flops
sys
.
path
.
append
(
sys
.
path
[
0
]
+
"/../"
)
import
models
from
utility
import
add_arguments
,
print_arguments
...
...
demo/quant/quant_aware/train.py
浏览文件 @
cd118000
...
...
@@ -8,8 +8,8 @@ import math
import
time
import
numpy
as
np
import
paddle.fluid
as
fluid
sys
.
path
.
append
(
sys
.
path
[
0
]
+
"/../../../"
)
sys
.
path
.
append
(
sys
.
path
[
0
]
+
"/../../"
)
sys
.
path
[
0
]
=
os
.
path
.
join
(
os
.
path
.
dirname
(
"__file__"
),
os
.
path
.
pardir
,
os
.
path
.
pardir
)
from
paddleslim.common
import
get_logger
from
paddleslim.analysis
import
flops
from
paddleslim.quant
import
quant_aware
,
quant_post
,
convert
...
...
demo/quant/quant_post/eval.py
浏览文件 @
cd118000
...
...
@@ -20,7 +20,8 @@ import functools
import
paddle
import
paddle.fluid
as
fluid
sys
.
path
.
append
(
'../../'
)
sys
.
path
[
0
]
=
os
.
path
.
join
(
os
.
path
.
dirname
(
"__file__"
),
os
.
path
.
pardir
,
os
.
path
.
pardir
)
import
imagenet_reader
as
reader
from
utility
import
add_arguments
,
print_arguments
...
...
demo/quant/quant_post/export_model.py
浏览文件 @
cd118000
...
...
@@ -8,9 +8,9 @@ import math
import
time
import
numpy
as
np
import
paddle.fluid
as
fluid
sys
.
path
.
append
(
sys
.
path
[
0
]
+
"/../../../"
)
sys
.
path
[
0
]
=
os
.
path
.
join
(
os
.
path
.
dirname
(
"__file__"
),
os
.
path
.
pardir
,
os
.
path
.
pardir
)
from
paddleslim.common
import
get_logger
sys
.
path
.
append
(
sys
.
path
[
0
]
+
"/../../"
)
import
models
from
utility
import
add_arguments
,
print_arguments
...
...
demo/quant/quant_post/quant_post.py
浏览文件 @
cd118000
...
...
@@ -9,10 +9,10 @@ import time
import
numpy
as
np
import
paddle.fluid
as
fluid
sys
.
path
.
append
(
sys
.
path
[
0
]
+
"/../../../"
)
sys
.
path
[
0
]
=
os
.
path
.
join
(
os
.
path
.
dirname
(
"__file__"
),
os
.
path
.
pardir
,
os
.
path
.
pardir
)
from
paddleslim.common
import
get_logger
from
paddleslim.quant
import
quant_post
sys
.
path
.
append
(
sys
.
path
[
0
]
+
"/../../"
)
from
utility
import
add_arguments
,
print_arguments
import
imagenet_reader
as
reader
_logger
=
get_logger
(
__name__
,
level
=
logging
.
INFO
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录