Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
c5e65402
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
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看板
提交
c5e65402
编写于
9月 03, 2019
作者:
H
huzhiqiang
提交者:
Yan Chunwei
9月 03, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move npu into backends(directory) and move python/ into tools/python (#1958)
上级
deaddf9d
变更
54
显示空白变更内容
内联
并排
Showing
54 changed file
with
90 addition
and
90 deletion
+90
-90
lite/CMakeLists.txt
lite/CMakeLists.txt
+0
-1
lite/api/cxx_api.cc
lite/api/cxx_api.cc
+1
-1
lite/backends/CMakeLists.txt
lite/backends/CMakeLists.txt
+2
-1
lite/backends/npu/CMakeLists.txt
lite/backends/npu/CMakeLists.txt
+0
-0
lite/backends/npu/bridge/CMakeLists.txt
lite/backends/npu/bridge/CMakeLists.txt
+0
-0
lite/backends/npu/bridge/act_op.cc
lite/backends/npu/bridge/act_op.cc
+2
-2
lite/backends/npu/bridge/act_op_test.cc
lite/backends/npu/bridge/act_op_test.cc
+2
-2
lite/backends/npu/bridge/batch_norm_op.cc
lite/backends/npu/bridge/batch_norm_op.cc
+2
-2
lite/backends/npu/bridge/batch_norm_op_test.cc
lite/backends/npu/bridge/batch_norm_op_test.cc
+2
-2
lite/backends/npu/bridge/concat_op.cc
lite/backends/npu/bridge/concat_op.cc
+3
-3
lite/backends/npu/bridge/concat_op_test.cc
lite/backends/npu/bridge/concat_op_test.cc
+2
-2
lite/backends/npu/bridge/conv_op.cc
lite/backends/npu/bridge/conv_op.cc
+2
-2
lite/backends/npu/bridge/conv_op_test.cc
lite/backends/npu/bridge/conv_op_test.cc
+2
-2
lite/backends/npu/bridge/conv_transpose_op.cc
lite/backends/npu/bridge/conv_transpose_op.cc
+2
-2
lite/backends/npu/bridge/conv_transpose_op_test.cc
lite/backends/npu/bridge/conv_transpose_op_test.cc
+2
-2
lite/backends/npu/bridge/elementwise_ops.cc
lite/backends/npu/bridge/elementwise_ops.cc
+2
-2
lite/backends/npu/bridge/elementwise_ops_test.cc
lite/backends/npu/bridge/elementwise_ops_test.cc
+2
-2
lite/backends/npu/bridge/fc_op.cc
lite/backends/npu/bridge/fc_op.cc
+2
-2
lite/backends/npu/bridge/fc_op_test.cc
lite/backends/npu/bridge/fc_op_test.cc
+2
-2
lite/backends/npu/bridge/interpolate_op.cc
lite/backends/npu/bridge/interpolate_op.cc
+2
-2
lite/backends/npu/bridge/interpolate_op_test.cc
lite/backends/npu/bridge/interpolate_op_test.cc
+2
-2
lite/backends/npu/bridge/mul_op.cc
lite/backends/npu/bridge/mul_op.cc
+3
-3
lite/backends/npu/bridge/mul_op_test.cc
lite/backends/npu/bridge/mul_op_test.cc
+2
-2
lite/backends/npu/bridge/pad2d_op.cc
lite/backends/npu/bridge/pad2d_op.cc
+2
-2
lite/backends/npu/bridge/pad2d_op_test.cc
lite/backends/npu/bridge/pad2d_op_test.cc
+2
-2
lite/backends/npu/bridge/paddle_use_npu_bridges.h
lite/backends/npu/bridge/paddle_use_npu_bridges.h
+1
-1
lite/backends/npu/bridge/pool_op.cc
lite/backends/npu/bridge/pool_op.cc
+2
-2
lite/backends/npu/bridge/pool_op_test.cc
lite/backends/npu/bridge/pool_op_test.cc
+2
-2
lite/backends/npu/bridge/registry.cc
lite/backends/npu/bridge/registry.cc
+1
-1
lite/backends/npu/bridge/registry.h
lite/backends/npu/bridge/registry.h
+0
-0
lite/backends/npu/bridge/reshape_op.cc
lite/backends/npu/bridge/reshape_op.cc
+2
-2
lite/backends/npu/bridge/reshape_op_test.cc
lite/backends/npu/bridge/reshape_op_test.cc
+2
-2
lite/backends/npu/bridge/scale_op.cc
lite/backends/npu/bridge/scale_op.cc
+2
-2
lite/backends/npu/bridge/scale_op_test.cc
lite/backends/npu/bridge/scale_op_test.cc
+2
-2
lite/backends/npu/bridge/shuffle_channel_op.cc
lite/backends/npu/bridge/shuffle_channel_op.cc
+2
-2
lite/backends/npu/bridge/shuffle_channel_op_test.cc
lite/backends/npu/bridge/shuffle_channel_op_test.cc
+2
-2
lite/backends/npu/bridge/softmax_op.cc
lite/backends/npu/bridge/softmax_op.cc
+2
-2
lite/backends/npu/bridge/softmax_op_test.cc
lite/backends/npu/bridge/softmax_op_test.cc
+2
-2
lite/backends/npu/bridge/split_op.cc
lite/backends/npu/bridge/split_op.cc
+3
-3
lite/backends/npu/bridge/split_op_test.cc
lite/backends/npu/bridge/split_op_test.cc
+2
-2
lite/backends/npu/bridge/test_helper.cc
lite/backends/npu/bridge/test_helper.cc
+3
-3
lite/backends/npu/bridge/test_helper.h
lite/backends/npu/bridge/test_helper.h
+0
-0
lite/backends/npu/bridge/transpose_op.cc
lite/backends/npu/bridge/transpose_op.cc
+2
-2
lite/backends/npu/bridge/transpose_op_test.cc
lite/backends/npu/bridge/transpose_op_test.cc
+2
-2
lite/backends/npu/bridge/utils.cc
lite/backends/npu/bridge/utils.cc
+1
-1
lite/backends/npu/bridge/utils.h
lite/backends/npu/bridge/utils.h
+0
-0
lite/backends/npu/npu_helper.cc
lite/backends/npu/npu_helper.cc
+1
-1
lite/backends/npu/npu_helper.h
lite/backends/npu/npu_helper.h
+0
-0
lite/core/context.h
lite/core/context.h
+1
-1
lite/core/mir/subgraph/generate_npu_program_pass.cc
lite/core/mir/subgraph/generate_npu_program_pass.cc
+4
-4
lite/core/mir/subgraph/generate_npu_program_pass.h
lite/core/mir/subgraph/generate_npu_program_pass.h
+2
-2
lite/model_parser/model_parser.cc
lite/model_parser/model_parser.cc
+1
-1
lite/tools/ci_build.sh
lite/tools/ci_build.sh
+1
-1
lite/tools/python/lite_test.py
lite/tools/python/lite_test.py
+0
-0
未找到文件。
lite/CMakeLists.txt
浏览文件 @
c5e65402
...
@@ -15,7 +15,6 @@ set(LITE_ON_MOBILE ${LITE_WITH_LIGHT_WEIGHT_FRAMEWORK})
...
@@ -15,7 +15,6 @@ set(LITE_ON_MOBILE ${LITE_WITH_LIGHT_WEIGHT_FRAMEWORK})
add_subdirectory
(
utils
)
add_subdirectory
(
utils
)
add_subdirectory
(
operators
)
add_subdirectory
(
operators
)
add_subdirectory
(
kernels
)
add_subdirectory
(
kernels
)
add_subdirectory
(
npu
)
add_subdirectory
(
core
)
add_subdirectory
(
core
)
add_subdirectory
(
model_parser
)
add_subdirectory
(
model_parser
)
add_subdirectory
(
api
)
add_subdirectory
(
api
)
...
...
lite/api/cxx_api.cc
浏览文件 @
c5e65402
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include <vector>
#include <vector>
#include "lite/utils/io.h"
#include "lite/utils/io.h"
#ifdef LITE_WITH_NPU
#ifdef LITE_WITH_NPU
#include "lite/npu/npu_helper.h"
#include "lite/
backends/
npu/npu_helper.h"
#endif
#endif
namespace
paddle
{
namespace
paddle
{
...
...
lite/backends/CMakeLists.txt
浏览文件 @
c5e65402
add_subdirectory
(
arm
)
add_subdirectory
(
x86
)
add_subdirectory
(
x86
)
add_subdirectory
(
cuda
)
add_subdirectory
(
cuda
)
add_subdirectory
(
fpga
)
add_subdirectory
(
fpga
)
add_subdirectory
(
host
)
add_subdirectory
(
host
)
add_subdirectory
(
arm
)
add_subdirectory
(
opencl
)
add_subdirectory
(
opencl
)
add_subdirectory
(
npu
)
lite/npu/CMakeLists.txt
→
lite/
backends/
npu/CMakeLists.txt
浏览文件 @
c5e65402
文件已移动
lite/npu/bridge/CMakeLists.txt
→
lite/
backends/
npu/bridge/CMakeLists.txt
浏览文件 @
c5e65402
文件已移动
lite/npu/bridge/act_op.cc
→
lite/
backends/
npu/bridge/act_op.cc
浏览文件 @
c5e65402
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
#include "lite/operators/relu_op.h"
#include "lite/operators/relu_op.h"
namespace
paddle
{
namespace
paddle
{
...
...
lite/npu/bridge/act_op_test.cc
→
lite/
backends/
npu/bridge/act_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
#include "lite/operators/relu_op.h"
#include "lite/operators/relu_op.h"
namespace
paddle
{
namespace
paddle
{
...
...
lite/npu/bridge/batch_norm_op.cc
→
lite/
backends/
npu/bridge/batch_norm_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/batch_norm_op_test.cc
→
lite/
backends/
npu/bridge/batch_norm_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include "lite/operators/batch_norm_op.h"
#include "lite/operators/batch_norm_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/concat_op.cc
→
lite/
backends/
npu/bridge/concat_op.cc
浏览文件 @
c5e65402
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
#include "lite/npu/npu_helper.h"
#include "lite/
backends/
npu/npu_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/concat_op_test.cc
→
lite/
backends/
npu/bridge/concat_op_test.cc
浏览文件 @
c5e65402
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#include "lite/operators/concat_op.h"
#include "lite/operators/concat_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/conv_op.cc
→
lite/
backends/
npu/bridge/conv_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/conv_op_test.cc
→
lite/
backends/
npu/bridge/conv_op_test.cc
浏览文件 @
c5e65402
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#include "lite/operators/conv_op.h"
#include "lite/operators/conv_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/conv_transpose_op.cc
→
lite/
backends/
npu/bridge/conv_transpose_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/conv_transpose_op_test.cc
→
lite/
backends/
npu/bridge/conv_transpose_op_test.cc
浏览文件 @
c5e65402
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#include "lite/operators/conv_transpose_op.h"
#include "lite/operators/conv_transpose_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/elementwise_ops.cc
→
lite/
backends/
npu/bridge/elementwise_ops.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/elementwise_ops_test.cc
→
lite/
backends/
npu/bridge/elementwise_ops_test.cc
浏览文件 @
c5e65402
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#include "lite/operators/elementwise_ops.h"
#include "lite/operators/elementwise_ops.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/fc_op.cc
→
lite/
backends/
npu/bridge/fc_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/fc_op_test.cc
→
lite/
backends/
npu/bridge/fc_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include "lite/operators/fc_op.h"
#include "lite/operators/fc_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/interpolate_op.cc
→
lite/
backends/
npu/bridge/interpolate_op.cc
浏览文件 @
c5e65402
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/interpolate_op_test.cc
→
lite/
backends/
npu/bridge/interpolate_op_test.cc
浏览文件 @
c5e65402
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#include "lite/operators/interpolate_op.h"
#include "lite/operators/interpolate_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/mul_op.cc
→
lite/
backends/
npu/bridge/mul_op.cc
浏览文件 @
c5e65402
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
#include "lite/npu/npu_helper.h"
#include "lite/
backends/
npu/npu_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/mul_op_test.cc
→
lite/
backends/
npu/bridge/mul_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include "lite/operators/mul_op.h"
#include "lite/operators/mul_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/pad2d_op.cc
→
lite/
backends/
npu/bridge/pad2d_op.cc
浏览文件 @
c5e65402
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/pad2d_op_test.cc
→
lite/
backends/
npu/bridge/pad2d_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include "lite/operators/pad2d_op.h"
#include "lite/operators/pad2d_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/paddle_use_npu_bridges.h
→
lite/
backends/
npu/bridge/paddle_use_npu_bridges.h
浏览文件 @
c5e65402
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#pragma once
#pragma once
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
USE_NPU_BRIDGE
(
mul
);
USE_NPU_BRIDGE
(
mul
);
USE_NPU_BRIDGE
(
fc
);
USE_NPU_BRIDGE
(
fc
);
...
...
lite/npu/bridge/pool_op.cc
→
lite/
backends/
npu/bridge/pool_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/pool_op_test.cc
→
lite/
backends/
npu/bridge/pool_op_test.cc
浏览文件 @
c5e65402
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#include "lite/operators/pool_op.h"
#include "lite/operators/pool_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/registry.cc
→
lite/
backends/
npu/bridge/registry.cc
浏览文件 @
c5e65402
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include <utility>
#include <utility>
namespace
paddle
{
namespace
paddle
{
...
...
lite/npu/bridge/registry.h
→
lite/
backends/
npu/bridge/registry.h
浏览文件 @
c5e65402
文件已移动
lite/npu/bridge/reshape_op.cc
→
lite/
backends/
npu/bridge/reshape_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/reshape_op_test.cc
→
lite/
backends/
npu/bridge/reshape_op_test.cc
浏览文件 @
c5e65402
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#include "lite/operators/reshape_op.h"
#include "lite/operators/reshape_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/scale_op.cc
→
lite/
backends/
npu/bridge/scale_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/scale_op_test.cc
→
lite/
backends/
npu/bridge/scale_op_test.cc
浏览文件 @
c5e65402
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#include "lite/operators/scale_op.h"
#include "lite/operators/scale_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <random>
#include <random>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/shuffle_channel_op.cc
→
lite/
backends/
npu/bridge/shuffle_channel_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/shuffle_channel_op_test.cc
→
lite/
backends/
npu/bridge/shuffle_channel_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include "lite/operators/shuffle_channel_op.h"
#include "lite/operators/shuffle_channel_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/softmax_op.cc
→
lite/
backends/
npu/bridge/softmax_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/softmax_op_test.cc
→
lite/
backends/
npu/bridge/softmax_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include "lite/operators/softmax_op.h"
#include "lite/operators/softmax_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/split_op.cc
→
lite/
backends/
npu/bridge/split_op.cc
浏览文件 @
c5e65402
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
#include "lite/npu/npu_helper.h"
#include "lite/
backends/
npu/npu_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/split_op_test.cc
→
lite/
backends/
npu/bridge/split_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include "lite/operators/split_op.h"
#include "lite/operators/split_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/test_helper.cc
→
lite/
backends/
npu/bridge/test_helper.cc
浏览文件 @
c5e65402
...
@@ -12,12 +12,12 @@
...
@@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.
#include "lite/npu/bridge/test_helper.h"
#include "lite/
backends/
npu/bridge/test_helper.h"
#include <utility>
#include <utility>
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/utils.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/operators/graph_op.h"
#include "lite/operators/graph_op.h"
namespace
paddle
{
namespace
paddle
{
...
...
lite/npu/bridge/test_helper.h
→
lite/
backends/
npu/bridge/test_helper.h
浏览文件 @
c5e65402
文件已移动
lite/npu/bridge/transpose_op.cc
→
lite/
backends/
npu/bridge/transpose_op.cc
浏览文件 @
c5e65402
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/transpose_op_test.cc
→
lite/
backends/
npu/bridge/transpose_op_test.cc
浏览文件 @
c5e65402
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
#include "lite/operators/transpose_op.h"
#include "lite/operators/transpose_op.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/bridge/test_helper.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/bridge/test_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/npu/bridge/utils.cc
→
lite/
backends/
npu/bridge/utils.cc
浏览文件 @
c5e65402
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
#include <memory>
#include <memory>
#include <mutex> // NOLINT
#include <mutex> // NOLINT
#include <string>
#include <string>
...
...
lite/npu/bridge/utils.h
→
lite/
backends/
npu/bridge/utils.h
浏览文件 @
c5e65402
文件已移动
lite/npu/npu_helper.cc
→
lite/
backends/
npu/npu_helper.cc
浏览文件 @
c5e65402
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.
#include "lite/npu/npu_helper.h"
#include "lite/
backends/
npu/npu_helper.h"
#include <fstream>
#include <fstream>
#include <memory>
#include <memory>
#include <string>
#include <string>
...
...
lite/npu/npu_helper.h
→
lite/
backends/
npu/npu_helper.h
浏览文件 @
c5e65402
文件已移动
lite/core/context.h
浏览文件 @
c5e65402
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "lite/backends/opencl/cl_runtime.h"
#include "lite/backends/opencl/cl_runtime.h"
#endif
#endif
#ifdef LITE_WITH_NPU
#ifdef LITE_WITH_NPU
#include "lite/npu/npu_helper.h"
#include "lite/
backends/
npu/npu_helper.h"
#endif
#endif
#include <map>
#include <map>
...
...
lite/core/mir/subgraph/generate_npu_program_pass.cc
浏览文件 @
c5e65402
...
@@ -27,10 +27,10 @@
...
@@ -27,10 +27,10 @@
#include "ai_ddk_lib/include/graph/model.h"
#include "ai_ddk_lib/include/graph/model.h"
#include "ai_ddk_lib/include/graph/op/all_ops.h" // for ge::op::Data
#include "ai_ddk_lib/include/graph/op/all_ops.h" // for ge::op::Data
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "ai_ddk_lib/include/graph/operator_reg.h"
#include "lite/npu/bridge/paddle_use_npu_bridges.h"
#include "lite/
backends/
npu/bridge/paddle_use_npu_bridges.h"
#include "lite/npu/bridge/registry.h"
#include "lite/
backends/
npu/bridge/registry.h"
#include "lite/npu/bridge/utils.h"
#include "lite/
backends/
npu/bridge/utils.h"
#include "lite/npu/npu_helper.h"
#include "lite/
backends/
npu/npu_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/core/mir/subgraph/generate_npu_program_pass.h
浏览文件 @
c5e65402
...
@@ -20,10 +20,10 @@
...
@@ -20,10 +20,10 @@
#include <unordered_map>
#include <unordered_map>
#include <unordered_set>
#include <unordered_set>
#include <vector>
#include <vector>
#include "lite/backends/npu/bridge/registry.h"
#include "lite/backends/npu/npu_helper.h"
#include "lite/core/mir/pass.h"
#include "lite/core/mir/pass.h"
#include "lite/core/mir/subgraph/subgraph_program_pass.h"
#include "lite/core/mir/subgraph/subgraph_program_pass.h"
#include "lite/npu/bridge/registry.h"
#include "lite/npu/npu_helper.h"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
...
...
lite/model_parser/model_parser.cc
浏览文件 @
c5e65402
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "lite/utils/io.h"
#include "lite/utils/io.h"
#ifdef LITE_WITH_NPU
#ifdef LITE_WITH_NPU
#include "lite/npu/npu_helper.h"
#include "lite/
backends/
npu/npu_helper.h"
#endif
#endif
namespace
paddle
{
namespace
paddle
{
...
...
lite/tools/ci_build.sh
浏览文件 @
c5e65402
...
@@ -243,7 +243,7 @@ function build_test_train {
...
@@ -243,7 +243,7 @@ function build_test_train {
make
-j
$NUM_CORES_FOR_COMPILE
make
-j
$NUM_CORES_FOR_COMPILE
find
-name
"*.whl"
| xargs pip2
install
find
-name
"*.whl"
| xargs pip2
install
python ../lite/python/lite_test.py
python ../lite/
tools/
python/lite_test.py
}
}
...
...
lite/python/lite_test.py
→
lite/
tools/
python/lite_test.py
浏览文件 @
c5e65402
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录