Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
56fa3880
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
56fa3880
编写于
6月 29, 2020
作者:
W
Wojciech Uss
提交者:
GitHub
6月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename qat into quant in filenames only (#25194)
test=develop
上级
02adf68d
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
12 addition
and
12 deletion
+12
-12
paddle/fluid/inference/tests/api/CMakeLists.txt
paddle/fluid/inference/tests/api/CMakeLists.txt
+1
-1
paddle/fluid/inference/tests/api/analyzer_quant_image_classification_tester.cc
...e/tests/api/analyzer_quant_image_classification_tester.cc
+0
-0
python/paddle/fluid/contrib/slim/quantization/__init__.py
python/paddle/fluid/contrib/slim/quantization/__init__.py
+6
-6
python/paddle/fluid/contrib/slim/quantization/quant2_int8_mkldnn_pass.py
...luid/contrib/slim/quantization/quant2_int8_mkldnn_pass.py
+0
-0
python/paddle/fluid/contrib/slim/quantization/quant_int8_mkldnn_pass.py
...fluid/contrib/slim/quantization/quant_int8_mkldnn_pass.py
+0
-0
python/paddle/fluid/contrib/slim/tests/CMakeLists.txt
python/paddle/fluid/contrib/slim/tests/CMakeLists.txt
+5
-5
python/paddle/fluid/contrib/slim/tests/README.md
python/paddle/fluid/contrib/slim/tests/README.md
+0
-0
python/paddle/fluid/contrib/slim/tests/quant2_int8_image_classification_comparison.py
...slim/tests/quant2_int8_image_classification_comparison.py
+0
-0
python/paddle/fluid/contrib/slim/tests/quant2_int8_nlp_comparison.py
...le/fluid/contrib/slim/tests/quant2_int8_nlp_comparison.py
+0
-0
python/paddle/fluid/contrib/slim/tests/quant_int8_image_classification_comparison.py
.../slim/tests/quant_int8_image_classification_comparison.py
+0
-0
python/paddle/fluid/contrib/slim/tests/save_quant_model.py
python/paddle/fluid/contrib/slim/tests/save_quant_model.py
+0
-0
python/paddle/fluid/contrib/slim/tests/test_quant2_int8_mkldnn_pass.py
.../fluid/contrib/slim/tests/test_quant2_int8_mkldnn_pass.py
+0
-0
未找到文件。
paddle/fluid/inference/tests/api/CMakeLists.txt
浏览文件 @
56fa3880
...
@@ -319,7 +319,7 @@ if(WITH_MKLDNN)
...
@@ -319,7 +319,7 @@ if(WITH_MKLDNN)
set
(
QAT_DATA_DIR
"
${
INFERENCE_DEMO_INSTALL_DIR
}
/qat"
)
set
(
QAT_DATA_DIR
"
${
INFERENCE_DEMO_INSTALL_DIR
}
/qat"
)
set
(
QAT_IMG_CLASS_TEST_APP
"test_analyzer_qat_image_classification"
)
set
(
QAT_IMG_CLASS_TEST_APP
"test_analyzer_qat_image_classification"
)
set
(
QAT_IMG_CLASS_TEST_APP_SRC
"analyzer_q
a
t_image_classification_tester.cc"
)
set
(
QAT_IMG_CLASS_TEST_APP_SRC
"analyzer_q
uan
t_image_classification_tester.cc"
)
# build test binary to be used in subsequent tests
# build test binary to be used in subsequent tests
inference_analysis_api_test_build
(
${
QAT_IMG_CLASS_TEST_APP
}
${
QAT_IMG_CLASS_TEST_APP_SRC
}
)
inference_analysis_api_test_build
(
${
QAT_IMG_CLASS_TEST_APP
}
${
QAT_IMG_CLASS_TEST_APP_SRC
}
)
...
...
paddle/fluid/inference/tests/api/analyzer_q
a
t_image_classification_tester.cc
→
paddle/fluid/inference/tests/api/analyzer_q
uan
t_image_classification_tester.cc
浏览文件 @
56fa3880
文件已移动
python/paddle/fluid/contrib/slim/quantization/__init__.py
浏览文件 @
56fa3880
...
@@ -20,15 +20,15 @@ from . import quantization_strategy
...
@@ -20,15 +20,15 @@ from . import quantization_strategy
from
.quantization_strategy
import
*
from
.quantization_strategy
import
*
from
.
import
mkldnn_post_training_strategy
from
.
import
mkldnn_post_training_strategy
from
.mkldnn_post_training_strategy
import
*
from
.mkldnn_post_training_strategy
import
*
from
.
import
q
a
t_int8_mkldnn_pass
from
.
import
q
uan
t_int8_mkldnn_pass
from
.q
a
t_int8_mkldnn_pass
import
*
from
.q
uan
t_int8_mkldnn_pass
import
*
from
.
import
q
a
t2_int8_mkldnn_pass
from
.
import
q
uan
t2_int8_mkldnn_pass
from
.q
a
t2_int8_mkldnn_pass
import
*
from
.q
uan
t2_int8_mkldnn_pass
import
*
from
.
import
post_training_quantization
from
.
import
post_training_quantization
from
.post_training_quantization
import
*
from
.post_training_quantization
import
*
__all__
=
quantization_pass
.
__all__
+
quantization_strategy
.
__all__
__all__
=
quantization_pass
.
__all__
+
quantization_strategy
.
__all__
__all__
+=
mkldnn_post_training_strategy
.
__all__
__all__
+=
mkldnn_post_training_strategy
.
__all__
__all__
+=
q
a
t_int8_mkldnn_pass
.
__all__
__all__
+=
q
uan
t_int8_mkldnn_pass
.
__all__
__all__
+=
q
a
t2_int8_mkldnn_pass
.
__all__
__all__
+=
q
uan
t2_int8_mkldnn_pass
.
__all__
__all__
+=
post_training_quantization
.
__all__
__all__
+=
post_training_quantization
.
__all__
python/paddle/fluid/contrib/slim/quantization/q
a
t2_int8_mkldnn_pass.py
→
python/paddle/fluid/contrib/slim/quantization/q
uan
t2_int8_mkldnn_pass.py
浏览文件 @
56fa3880
文件已移动
python/paddle/fluid/contrib/slim/quantization/q
a
t_int8_mkldnn_pass.py
→
python/paddle/fluid/contrib/slim/quantization/q
uan
t_int8_mkldnn_pass.py
浏览文件 @
56fa3880
文件已移动
python/paddle/fluid/contrib/slim/tests/CMakeLists.txt
浏览文件 @
56fa3880
...
@@ -44,7 +44,7 @@ function(download_qat_fp32_model install_dir data_file)
...
@@ -44,7 +44,7 @@ function(download_qat_fp32_model install_dir data_file)
endfunction
()
endfunction
()
function
(
inference_qat_int8_image_classification_test target qat_model_dir dataset_path
)
function
(
inference_qat_int8_image_classification_test target qat_model_dir dataset_path
)
py_test
(
${
target
}
SRCS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/q
a
t_int8_image_classification_comparison.py"
py_test
(
${
target
}
SRCS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/q
uan
t_int8_image_classification_comparison.py"
ENVS FLAGS_OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
ENVS FLAGS_OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
FLAGS_use_mkldnn=true
FLAGS_use_mkldnn=true
...
@@ -58,7 +58,7 @@ endfunction()
...
@@ -58,7 +58,7 @@ endfunction()
# set batch_size 10 for UT only (avoid OOM). For whole dataset, use batch_size 25
# set batch_size 10 for UT only (avoid OOM). For whole dataset, use batch_size 25
function
(
inference_qat2_int8_image_classification_test target qat_model_dir fp32_model_dir dataset_path ops_to_quantize
)
function
(
inference_qat2_int8_image_classification_test target qat_model_dir fp32_model_dir dataset_path ops_to_quantize
)
py_test
(
${
target
}
SRCS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/q
a
t2_int8_image_classification_comparison.py"
py_test
(
${
target
}
SRCS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/q
uan
t2_int8_image_classification_comparison.py"
ENVS FLAGS_OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
ENVS FLAGS_OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
FLAGS_use_mkldnn=true
FLAGS_use_mkldnn=true
...
@@ -73,7 +73,7 @@ endfunction()
...
@@ -73,7 +73,7 @@ endfunction()
# set batch_size 10 for UT only (avoid OOM). For whole dataset, use batch_size 20
# set batch_size 10 for UT only (avoid OOM). For whole dataset, use batch_size 20
function
(
inference_qat2_int8_nlp_test target qat_model_dir fp32_model_dir dataset_path labels_path
)
function
(
inference_qat2_int8_nlp_test target qat_model_dir fp32_model_dir dataset_path labels_path
)
py_test
(
${
target
}
SRCS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/q
a
t2_int8_nlp_comparison.py"
py_test
(
${
target
}
SRCS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/q
uan
t2_int8_nlp_comparison.py"
ENVS FLAGS_OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
ENVS FLAGS_OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
OMP_NUM_THREADS=
${
CPU_NUM_THREADS_ON_CI
}
FLAGS_use_mkldnn=true
FLAGS_use_mkldnn=true
...
@@ -99,7 +99,7 @@ function(download_qat_model install_dir data_file)
...
@@ -99,7 +99,7 @@ function(download_qat_model install_dir data_file)
endfunction
()
endfunction
()
function
(
save_qat_ic_model_test target qat_model_dir fp32_model_save_path int8_model_save_path ops_to_quantize
)
function
(
save_qat_ic_model_test target qat_model_dir fp32_model_save_path int8_model_save_path ops_to_quantize
)
py_test
(
${
target
}
SRCS
${
CMAKE_CURRENT_SOURCE_DIR
}
/save_q
a
t_model.py
py_test
(
${
target
}
SRCS
${
CMAKE_CURRENT_SOURCE_DIR
}
/save_q
uan
t_model.py
ARGS --qat_model_path
${
qat_model_dir
}
ARGS --qat_model_path
${
qat_model_dir
}
--fp32_model_save_path
${
fp32_model_save_path
}
--fp32_model_save_path
${
fp32_model_save_path
}
--int8_model_save_path
${
int8_model_save_path
}
--int8_model_save_path
${
int8_model_save_path
}
...
@@ -107,7 +107,7 @@ function(save_qat_ic_model_test target qat_model_dir fp32_model_save_path int8_m
...
@@ -107,7 +107,7 @@ function(save_qat_ic_model_test target qat_model_dir fp32_model_save_path int8_m
endfunction
()
endfunction
()
function
(
save_qat_nlp_model_test target qat_model_dir fp32_model_save_path int8_model_save_path
)
function
(
save_qat_nlp_model_test target qat_model_dir fp32_model_save_path int8_model_save_path
)
py_test
(
${
target
}
SRCS
${
CMAKE_CURRENT_SOURCE_DIR
}
/save_q
a
t_model.py
py_test
(
${
target
}
SRCS
${
CMAKE_CURRENT_SOURCE_DIR
}
/save_q
uan
t_model.py
ARGS --qat_model_path
${
qat_model_dir
}
ARGS --qat_model_path
${
qat_model_dir
}
--fp32_model_save_path
${
fp32_model_save_path
}
--fp32_model_save_path
${
fp32_model_save_path
}
--int8_model_save_path
${
int8_model_save_path
}
)
--int8_model_save_path
${
int8_model_save_path
}
)
...
...
python/paddle/fluid/contrib/slim/tests/
QAT_mkldnn_int8_readme
.md
→
python/paddle/fluid/contrib/slim/tests/
README
.md
浏览文件 @
56fa3880
文件已移动
python/paddle/fluid/contrib/slim/tests/q
a
t2_int8_image_classification_comparison.py
→
python/paddle/fluid/contrib/slim/tests/q
uan
t2_int8_image_classification_comparison.py
浏览文件 @
56fa3880
文件已移动
python/paddle/fluid/contrib/slim/tests/q
a
t2_int8_nlp_comparison.py
→
python/paddle/fluid/contrib/slim/tests/q
uan
t2_int8_nlp_comparison.py
浏览文件 @
56fa3880
文件已移动
python/paddle/fluid/contrib/slim/tests/q
a
t_int8_image_classification_comparison.py
→
python/paddle/fluid/contrib/slim/tests/q
uan
t_int8_image_classification_comparison.py
浏览文件 @
56fa3880
文件已移动
python/paddle/fluid/contrib/slim/tests/save_q
a
t_model.py
→
python/paddle/fluid/contrib/slim/tests/save_q
uan
t_model.py
浏览文件 @
56fa3880
文件已移动
python/paddle/fluid/contrib/slim/tests/test_q
a
t2_int8_mkldnn_pass.py
→
python/paddle/fluid/contrib/slim/tests/test_q
uan
t2_int8_mkldnn_pass.py
浏览文件 @
56fa3880
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录