Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
f6bcab79
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
338
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f6bcab79
编写于
4月 15, 2020
作者:
Y
yanghongtian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename HW_ASCEND_NPU_DEPS
上级
6d864140
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
9 deletion
+14
-9
lite/api/CMakeLists.txt
lite/api/CMakeLists.txt
+6
-6
lite/gen_code/CMakeLists.txt
lite/gen_code/CMakeLists.txt
+1
-1
lite/kernels/hw_ascend_npu/bridges/CMakeLists.txt
lite/kernels/hw_ascend_npu/bridges/CMakeLists.txt
+2
-0
lite/kernels/hw_ascend_npu/bridges/act_op.cc
lite/kernels/hw_ascend_npu/bridges/act_op.cc
+3
-2
lite/tests/kernels/activation_compute_test.cc
lite/tests/kernels/activation_compute_test.cc
+2
-0
未找到文件。
lite/api/CMakeLists.txt
浏览文件 @
f6bcab79
...
...
@@ -68,7 +68,7 @@ if (WITH_TESTING)
X86_DEPS
${
x86_kernels
}
XPU_DEPS
${
xpu_kernels
}
BM_DEPS
${
bm_kernels
}
HW
Ascend
NPU_DEPS
${
hw_ascend_npu_kernels
}
HW
_ASCEND_
NPU_DEPS
${
hw_ascend_npu_kernels
}
MLU_DEPS
${
mlu_kernels
}
)
endif
()
if
(
LITE_WITH_FPGA
)
...
...
@@ -110,7 +110,7 @@ if (NOT LITE_ON_TINY_PUBLISH)
BM_DEPS
${
bm_kernels
}
CL_DEPS
${
opencl_kernels
}
FPGA_DEPS
${
fpga_kernels
}
HW
Ascend
NPU_DEPS
${
hw_ascend_npu_kernels
}
)
HW
_ASCEND_
NPU_DEPS
${
hw_ascend_npu_kernels
}
)
endif
()
# for light api
...
...
@@ -132,7 +132,7 @@ lite_cc_library(light_api SRCS light_api.cc
CL_DEPS
${
opencl_kernels
}
FPGA_DEPS
${
fpga_kernels
}
BM_DEPS
${
bm_kernels
}
HW
Ascend
NPU_DEPS
${
hw_ascend_npu_kernels
}
)
HW
_ASCEND_
NPU_DEPS
${
hw_ascend_npu_kernels
}
)
include
(
ExternalProject
)
set
(
LITE_DEMO_INSTALL_DIR
"
${
THIRD_PARTY_PATH
}
/inference_demo"
CACHE STRING
...
...
@@ -151,7 +151,7 @@ if(WITH_TESTING)
CL_DEPS
${
opencl_kernels
}
FPGA_DEPS
${
fpga_kernels
}
BM_DEPS
${
bm_kernels
}
HW
Ascend
NPU_DEPS
${
hw_ascend_npu_kernels
}
HW
_ASCEND_
NPU_DEPS
${
hw_ascend_npu_kernels
}
EXCLUDE_COMPILE_DEPS
"ON"
ARGS --model_dir=
${
LITE_MODEL_DIR
}
/lite_naive_model
--optimized_model=
${
LITE_MODEL_DIR
}
/lite_naive_model_opt SERIAL
)
...
...
@@ -299,7 +299,7 @@ lite_cc_test(test_apis SRCS apis_test.cc
FPGA_DEPS
${
fpga_kernels
}
BM_DEPS
${
bm_kernels
}
MLU_DEPS
${
mlu_kernels
}
HW
Ascend
NPU_DEPS
${
hw_ascend_npu_kernels
}
HW
_ASCEND_
NPU_DEPS
${
hw_ascend_npu_kernels
}
ARGS --model_dir=
${
LITE_MODEL_DIR
}
/lite_naive_model
--optimized_model=
${
LITE_MODEL_DIR
}
/lite_naive_model_opt SERIAL
)
...
...
@@ -338,7 +338,7 @@ lite_cc_test(test_paddle_api SRCS paddle_api_test.cc DEPS paddle_api_full paddle
FPGA_DEPS
${
fpga_kernels
}
BM_DEPS
${
bm_kernels
}
MLU_DEPS
${
mlu_kernels
}
HW
Ascend
NPU_DEPS
${
hw_ascend_npu_kernels
}
HW
_ASCEND_
NPU_DEPS
${
hw_ascend_npu_kernels
}
ARGS --model_dir=
${
LITE_MODEL_DIR
}
/lite_naive_model SERIAL
)
if
(
WITH_TESTING
)
add_dependencies
(
test_paddle_api extern_lite_download_lite_naive_model_tar_gz
)
...
...
lite/gen_code/CMakeLists.txt
浏览文件 @
f6bcab79
...
...
@@ -17,7 +17,7 @@ lite_cc_test(test_gen_code SRCS gen_code_test.cc
NPU_DEPS
${
npu_kernels
}
XPU_DEPS
${
xpu_kernels
}
CL_DEPS
${
opencl_kernels
}
HW
Ascend
NPU_DEPS
${
hw_ascend_npu_kernels
}
HW
_ASCEND_
NPU_DEPS
${
hw_ascend_npu_kernels
}
FPGA_DEPS
${
fpga_kernels
}
EXCLUDE_COMPILE_DEPS
"ON"
ARGS --optimized_model=
${
LITE_MODEL_DIR
}
/lite_naive_model_opt SERIAL
)
...
...
lite/kernels/hw_ascend_npu/bridges/CMakeLists.txt
浏览文件 @
f6bcab79
...
...
@@ -15,3 +15,5 @@ lite_cc_library(subgraph_bridge_graph_hw_ascend_npu
set
(
hw_ascend_npu_subgraph_bridges
subgraph_bridge_graph_hw_ascend_npu
CACHE INTERNAL
"hw_ascend_npu_subgraph_bridges"
)
lite_cc_library
(
subgraph_bridge_act_op_hw_ascend_npu SRCS act_op.cc DEPS
${
hw_ascend_npu_subgraph_bridge_deps
}
)
lite/kernels/hw_ascend_npu/bridges/act_op.cc
浏览文件 @
f6bcab79
...
...
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include <all_ops.h>
#include "lite/kernels/hw_ascend_npu/bridges/graph.h"
#include "lite/kernels/hw_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
...
...
@@ -124,7 +125,7 @@ REGISTER_SUBGRAPH_BRIDGE(
REGISTER_SUBGRAPH_BRIDGE
(
relu_clipped
,
kNPU
,
paddle
::
lite
::
subgraph
::
npu
::
ActConverter
<
ge
::
Activation
>
);
paddle
::
lite
::
subgraph
::
hw_ascend_
npu
::
ActConverter
<
ge
::
Activation
>
);
REGISTER_SUBGRAPH_BRIDGE
(
relu6
,
kHWAscendNPU
,
...
...
@@ -132,7 +133,7 @@ REGISTER_SUBGRAPH_BRIDGE(
REGISTER_SUBGRAPH_BRIDGE
(
leaky_relu
,
kHWAscendNPU
,
paddle
::
lite
::
subgraph
::
npu
::
ActConverter
<
ge
::
Activation
>
);
paddle
::
lite
::
subgraph
::
hw_ascend_
npu
::
ActConverter
<
ge
::
Activation
>
);
REGISTER_SUBGRAPH_BRIDGE
(
abs
,
kHWAscendNPU
,
...
...
lite/tests/kernels/activation_compute_test.cc
浏览文件 @
f6bcab79
...
...
@@ -291,6 +291,8 @@ TEST(Activation_relu, precision) {
place
=
TARGET
(
kARM
);
#elif defined(LITE_WITH_XPU)
place
=
TARGET
(
kXPU
);
#elif defined(LITE_WITH_HW_ASCEND_NPU)
place
=
TARGET
(
kHWAscendNPU
);
#else
return
;
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录