Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
53db8325
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
332
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看板
未验证
提交
53db8325
编写于
9月 09, 2020
作者:
H
hong19860320
提交者:
GitHub
9月 09, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Core] Adjust the file path of subgraph_bridge_registry and subgraph_engine_base (#4270)
上级
1716db63
变更
192
展开全部
隐藏空白更改
内联
并排
Showing
192 changed file
with
304 addition
and
297 deletion
+304
-297
lite/core/CMakeLists.txt
lite/core/CMakeLists.txt
+9
-0
lite/core/subgraph_bridge_registry.cc
lite/core/subgraph_bridge_registry.cc
+10
-10
lite/core/subgraph_bridge_registry.h
lite/core/subgraph_bridge_registry.h
+5
-5
lite/core/subgraph_engine_base.cc
lite/core/subgraph_engine_base.cc
+16
-16
lite/core/subgraph_engine_base.h
lite/core/subgraph_engine_base.h
+10
-9
lite/kernels/apu/CMakeLists.txt
lite/kernels/apu/CMakeLists.txt
+1
-1
lite/kernels/apu/bridges/act_op.cc
lite/kernels/apu/bridges/act_op.cc
+2
-1
lite/kernels/apu/bridges/conv_op.cc
lite/kernels/apu/bridges/conv_op.cc
+1
-1
lite/kernels/apu/bridges/elementwise_ops.cc
lite/kernels/apu/bridges/elementwise_ops.cc
+2
-1
lite/kernels/apu/bridges/fc_op.cc
lite/kernels/apu/bridges/fc_op.cc
+1
-1
lite/kernels/apu/bridges/pool_op.cc
lite/kernels/apu/bridges/pool_op.cc
+1
-1
lite/kernels/apu/bridges/softmax_op.cc
lite/kernels/apu/bridges/softmax_op.cc
+1
-1
lite/kernels/apu/subgraph_compute.cc
lite/kernels/apu/subgraph_compute.cc
+1
-1
lite/kernels/apu/subgraph_compute.h
lite/kernels/apu/subgraph_compute.h
+9
-9
lite/kernels/bm/CMakeLists.txt
lite/kernels/bm/CMakeLists.txt
+1
-1
lite/kernels/bm/bridges/CMakeLists.txt
lite/kernels/bm/bridges/CMakeLists.txt
+1
-2
lite/kernels/bm/bridges/act_op.cc
lite/kernels/bm/bridges/act_op.cc
+1
-1
lite/kernels/bm/bridges/assign_value_op.cc
lite/kernels/bm/bridges/assign_value_op.cc
+1
-1
lite/kernels/bm/bridges/batch_norm_op.cc
lite/kernels/bm/bridges/batch_norm_op.cc
+1
-1
lite/kernels/bm/bridges/box_coder_op.cc
lite/kernels/bm/bridges/box_coder_op.cc
+1
-1
lite/kernels/bm/bridges/cast_op.cc
lite/kernels/bm/bridges/cast_op.cc
+1
-1
lite/kernels/bm/bridges/concat_op.cc
lite/kernels/bm/bridges/concat_op.cc
+2
-1
lite/kernels/bm/bridges/conv_op.cc
lite/kernels/bm/bridges/conv_op.cc
+1
-1
lite/kernels/bm/bridges/conv_transpose_op.cc
lite/kernels/bm/bridges/conv_transpose_op.cc
+1
-1
lite/kernels/bm/bridges/density_prior_box_op.cc
lite/kernels/bm/bridges/density_prior_box_op.cc
+1
-1
lite/kernels/bm/bridges/dropout_op.cc
lite/kernels/bm/bridges/dropout_op.cc
+2
-1
lite/kernels/bm/bridges/elementwise_ops.cc
lite/kernels/bm/bridges/elementwise_ops.cc
+2
-1
lite/kernels/bm/bridges/fill_constant_op.cc
lite/kernels/bm/bridges/fill_constant_op.cc
+1
-1
lite/kernels/bm/bridges/interpolate_op.cc
lite/kernels/bm/bridges/interpolate_op.cc
+1
-1
lite/kernels/bm/bridges/matmul_op.cc
lite/kernels/bm/bridges/matmul_op.cc
+1
-1
lite/kernels/bm/bridges/mul_op.cc
lite/kernels/bm/bridges/mul_op.cc
+2
-1
lite/kernels/bm/bridges/multiclass_nms_op.cc
lite/kernels/bm/bridges/multiclass_nms_op.cc
+1
-1
lite/kernels/bm/bridges/norm_op.cc
lite/kernels/bm/bridges/norm_op.cc
+1
-1
lite/kernels/bm/bridges/pool_op.cc
lite/kernels/bm/bridges/pool_op.cc
+2
-1
lite/kernels/bm/bridges/prior_box_op.cc
lite/kernels/bm/bridges/prior_box_op.cc
+1
-1
lite/kernels/bm/bridges/reduce_full_op.cc
lite/kernels/bm/bridges/reduce_full_op.cc
+1
-1
lite/kernels/bm/bridges/reshape_op.cc
lite/kernels/bm/bridges/reshape_op.cc
+1
-1
lite/kernels/bm/bridges/scale_op.cc
lite/kernels/bm/bridges/scale_op.cc
+1
-1
lite/kernels/bm/bridges/shape_op.cc
lite/kernels/bm/bridges/shape_op.cc
+1
-1
lite/kernels/bm/bridges/slice_op.cc
lite/kernels/bm/bridges/slice_op.cc
+1
-1
lite/kernels/bm/bridges/softmax_op.cc
lite/kernels/bm/bridges/softmax_op.cc
+2
-1
lite/kernels/bm/bridges/split_op.cc
lite/kernels/bm/bridges/split_op.cc
+1
-1
lite/kernels/bm/bridges/squeeze_op.cc
lite/kernels/bm/bridges/squeeze_op.cc
+1
-1
lite/kernels/bm/bridges/swish_op.cc
lite/kernels/bm/bridges/swish_op.cc
+2
-1
lite/kernels/bm/bridges/transpose_op.cc
lite/kernels/bm/bridges/transpose_op.cc
+1
-1
lite/kernels/bm/bridges/yolo_box_op.cc
lite/kernels/bm/bridges/yolo_box_op.cc
+1
-1
lite/kernels/bm/subgraph_compute.cc
lite/kernels/bm/subgraph_compute.cc
+1
-1
lite/kernels/bm/subgraph_compute.h
lite/kernels/bm/subgraph_compute.h
+9
-9
lite/kernels/huawei_ascend_npu/CMakeLists.txt
lite/kernels/huawei_ascend_npu/CMakeLists.txt
+1
-1
lite/kernels/huawei_ascend_npu/bridges/CMakeLists.txt
lite/kernels/huawei_ascend_npu/bridges/CMakeLists.txt
+1
-2
lite/kernels/huawei_ascend_npu/bridges/act_op.cc
lite/kernels/huawei_ascend_npu/bridges/act_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/batch_norm_op.cc
lite/kernels/huawei_ascend_npu/bridges/batch_norm_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/cast_op.cc
lite/kernels/huawei_ascend_npu/bridges/cast_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/concat_op.cc
lite/kernels/huawei_ascend_npu/bridges/concat_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/conv_op.cc
lite/kernels/huawei_ascend_npu/bridges/conv_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/dropout_op.cc
lite/kernels/huawei_ascend_npu/bridges/dropout_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/elementwise_ops.cc
lite/kernels/huawei_ascend_npu/bridges/elementwise_ops.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/fc_op.cc
lite/kernels/huawei_ascend_npu/bridges/fc_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/flatten_op.cc
lite/kernels/huawei_ascend_npu/bridges/flatten_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/gather_op.cc
lite/kernels/huawei_ascend_npu/bridges/gather_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/interpolate_op.cc
lite/kernels/huawei_ascend_npu/bridges/interpolate_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/layer_norm_op.cc
lite/kernels/huawei_ascend_npu/bridges/layer_norm_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/matmul_op.cc
lite/kernels/huawei_ascend_npu/bridges/matmul_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/pool_op.cc
lite/kernels/huawei_ascend_npu/bridges/pool_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/reshape_op.cc
lite/kernels/huawei_ascend_npu/bridges/reshape_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/scale_op.cc
lite/kernels/huawei_ascend_npu/bridges/scale_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/slice_op.cc
lite/kernels/huawei_ascend_npu/bridges/slice_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/softmax_op.cc
lite/kernels/huawei_ascend_npu/bridges/softmax_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/bridges/transpose_op.cc
lite/kernels/huawei_ascend_npu/bridges/transpose_op.cc
+1
-1
lite/kernels/huawei_ascend_npu/subgraph_compute.cc
lite/kernels/huawei_ascend_npu/subgraph_compute.cc
+1
-1
lite/kernels/huawei_ascend_npu/subgraph_compute.h
lite/kernels/huawei_ascend_npu/subgraph_compute.h
+9
-9
lite/kernels/mlu/CMakeLists.txt
lite/kernels/mlu/CMakeLists.txt
+1
-1
lite/kernels/mlu/bridges/CMakeLists.txt
lite/kernels/mlu/bridges/CMakeLists.txt
+1
-1
lite/kernels/mlu/bridges/act_op.cc
lite/kernels/mlu/bridges/act_op.cc
+1
-1
lite/kernels/mlu/bridges/act_op_test.cc
lite/kernels/mlu/bridges/act_op_test.cc
+1
-1
lite/kernels/mlu/bridges/argmax_op.cc
lite/kernels/mlu/bridges/argmax_op.cc
+1
-1
lite/kernels/mlu/bridges/argmax_op_test.cc
lite/kernels/mlu/bridges/argmax_op_test.cc
+1
-1
lite/kernels/mlu/bridges/batch_norm_op.cc
lite/kernels/mlu/bridges/batch_norm_op.cc
+1
-1
lite/kernels/mlu/bridges/batch_norm_op_test.cc
lite/kernels/mlu/bridges/batch_norm_op_test.cc
+1
-1
lite/kernels/mlu/bridges/cast_op.cc
lite/kernels/mlu/bridges/cast_op.cc
+1
-1
lite/kernels/mlu/bridges/cast_op_test.cc
lite/kernels/mlu/bridges/cast_op_test.cc
+1
-1
lite/kernels/mlu/bridges/concat_op.cc
lite/kernels/mlu/bridges/concat_op.cc
+1
-1
lite/kernels/mlu/bridges/concat_op_test.cc
lite/kernels/mlu/bridges/concat_op_test.cc
+1
-1
lite/kernels/mlu/bridges/conv_op.cc
lite/kernels/mlu/bridges/conv_op.cc
+1
-1
lite/kernels/mlu/bridges/conv_op_test.cc
lite/kernels/mlu/bridges/conv_op_test.cc
+1
-1
lite/kernels/mlu/bridges/dropout_op.cc
lite/kernels/mlu/bridges/dropout_op.cc
+1
-1
lite/kernels/mlu/bridges/dropout_op_test.cc
lite/kernels/mlu/bridges/dropout_op_test.cc
+1
-1
lite/kernels/mlu/bridges/elementwise_ops.cc
lite/kernels/mlu/bridges/elementwise_ops.cc
+1
-1
lite/kernels/mlu/bridges/elementwise_ops_test.cc
lite/kernels/mlu/bridges/elementwise_ops_test.cc
+1
-1
lite/kernels/mlu/bridges/fc_op.cc
lite/kernels/mlu/bridges/fc_op.cc
+1
-1
lite/kernels/mlu/bridges/fc_op_test.cc
lite/kernels/mlu/bridges/fc_op_test.cc
+1
-1
lite/kernels/mlu/bridges/flatten_op.cc
lite/kernels/mlu/bridges/flatten_op.cc
+1
-1
lite/kernels/mlu/bridges/flatten_op_test.cc
lite/kernels/mlu/bridges/flatten_op_test.cc
+1
-1
lite/kernels/mlu/bridges/gather_op.cc
lite/kernels/mlu/bridges/gather_op.cc
+1
-1
lite/kernels/mlu/bridges/gather_op_test.cc
lite/kernels/mlu/bridges/gather_op_test.cc
+1
-1
lite/kernels/mlu/bridges/interpolate_op.cc
lite/kernels/mlu/bridges/interpolate_op.cc
+1
-1
lite/kernels/mlu/bridges/interpolate_op_test.cc
lite/kernels/mlu/bridges/interpolate_op_test.cc
+1
-1
lite/kernels/mlu/bridges/layout_op.cc
lite/kernels/mlu/bridges/layout_op.cc
+1
-1
lite/kernels/mlu/bridges/layout_op_test.cc
lite/kernels/mlu/bridges/layout_op_test.cc
+1
-1
lite/kernels/mlu/bridges/lrn_op.cc
lite/kernels/mlu/bridges/lrn_op.cc
+1
-1
lite/kernels/mlu/bridges/lrn_op_test.cc
lite/kernels/mlu/bridges/lrn_op_test.cc
+1
-1
lite/kernels/mlu/bridges/norm_op.cc
lite/kernels/mlu/bridges/norm_op.cc
+1
-1
lite/kernels/mlu/bridges/norm_op_test.cc
lite/kernels/mlu/bridges/norm_op_test.cc
+1
-1
lite/kernels/mlu/bridges/pool_op.cc
lite/kernels/mlu/bridges/pool_op.cc
+1
-1
lite/kernels/mlu/bridges/pool_op_test.cc
lite/kernels/mlu/bridges/pool_op_test.cc
+1
-1
lite/kernels/mlu/bridges/reshape_op.cc
lite/kernels/mlu/bridges/reshape_op.cc
+1
-1
lite/kernels/mlu/bridges/reshape_op_test.cc
lite/kernels/mlu/bridges/reshape_op_test.cc
+1
-1
lite/kernels/mlu/bridges/scale_op.cc
lite/kernels/mlu/bridges/scale_op.cc
+1
-1
lite/kernels/mlu/bridges/scale_op_test.cc
lite/kernels/mlu/bridges/scale_op_test.cc
+1
-1
lite/kernels/mlu/bridges/slice_op.cc
lite/kernels/mlu/bridges/slice_op.cc
+1
-1
lite/kernels/mlu/bridges/slice_op_test.cc
lite/kernels/mlu/bridges/slice_op_test.cc
+1
-1
lite/kernels/mlu/bridges/softmax_op.cc
lite/kernels/mlu/bridges/softmax_op.cc
+1
-1
lite/kernels/mlu/bridges/softmax_op_test.cc
lite/kernels/mlu/bridges/softmax_op_test.cc
+1
-1
lite/kernels/mlu/bridges/split_op.cc
lite/kernels/mlu/bridges/split_op.cc
+1
-1
lite/kernels/mlu/bridges/split_op_test.cc
lite/kernels/mlu/bridges/split_op_test.cc
+1
-1
lite/kernels/mlu/bridges/squeeze_op.cc
lite/kernels/mlu/bridges/squeeze_op.cc
+1
-1
lite/kernels/mlu/bridges/squeeze_op_test.cc
lite/kernels/mlu/bridges/squeeze_op_test.cc
+1
-1
lite/kernels/mlu/bridges/test_helper.cc
lite/kernels/mlu/bridges/test_helper.cc
+1
-1
lite/kernels/mlu/bridges/transpose_op.cc
lite/kernels/mlu/bridges/transpose_op.cc
+1
-1
lite/kernels/mlu/bridges/transpose_op_test.cc
lite/kernels/mlu/bridges/transpose_op_test.cc
+1
-1
lite/kernels/mlu/subgraph_compute.h
lite/kernels/mlu/subgraph_compute.h
+10
-10
lite/kernels/npu/CMakeLists.txt
lite/kernels/npu/CMakeLists.txt
+1
-1
lite/kernels/npu/bridges/CMakeLists.txt
lite/kernels/npu/bridges/CMakeLists.txt
+0
-11
lite/kernels/npu/bridges/act_op.cc
lite/kernels/npu/bridges/act_op.cc
+1
-1
lite/kernels/npu/bridges/argmax_op.cc
lite/kernels/npu/bridges/argmax_op.cc
+1
-1
lite/kernels/npu/bridges/batch_norm_op.cc
lite/kernels/npu/bridges/batch_norm_op.cc
+1
-1
lite/kernels/npu/bridges/compare_op.cc
lite/kernels/npu/bridges/compare_op.cc
+1
-1
lite/kernels/npu/bridges/concat_op.cc
lite/kernels/npu/bridges/concat_op.cc
+1
-1
lite/kernels/npu/bridges/conv_op.cc
lite/kernels/npu/bridges/conv_op.cc
+1
-1
lite/kernels/npu/bridges/conv_transpose_op.cc
lite/kernels/npu/bridges/conv_transpose_op.cc
+1
-1
lite/kernels/npu/bridges/dropout_op.cc
lite/kernels/npu/bridges/dropout_op.cc
+1
-1
lite/kernels/npu/bridges/elementwise_ops.cc
lite/kernels/npu/bridges/elementwise_ops.cc
+1
-1
lite/kernels/npu/bridges/expand_op.cc
lite/kernels/npu/bridges/expand_op.cc
+1
-1
lite/kernels/npu/bridges/fc_op.cc
lite/kernels/npu/bridges/fc_op.cc
+1
-1
lite/kernels/npu/bridges/fill_constant_batch_size_like_op.cc
lite/kernels/npu/bridges/fill_constant_batch_size_like_op.cc
+1
-1
lite/kernels/npu/bridges/fill_constant_op.cc
lite/kernels/npu/bridges/fill_constant_op.cc
+1
-1
lite/kernels/npu/bridges/gather_op.cc
lite/kernels/npu/bridges/gather_op.cc
+1
-1
lite/kernels/npu/bridges/increment_op.cc
lite/kernels/npu/bridges/increment_op.cc
+1
-1
lite/kernels/npu/bridges/instance_norm_op.cc
lite/kernels/npu/bridges/instance_norm_op.cc
+1
-1
lite/kernels/npu/bridges/interpolate_op.cc
lite/kernels/npu/bridges/interpolate_op.cc
+1
-1
lite/kernels/npu/bridges/layer_norm_op.cc
lite/kernels/npu/bridges/layer_norm_op.cc
+1
-1
lite/kernels/npu/bridges/lookup_table_op.cc
lite/kernels/npu/bridges/lookup_table_op.cc
+1
-1
lite/kernels/npu/bridges/matmul_op.cc
lite/kernels/npu/bridges/matmul_op.cc
+1
-1
lite/kernels/npu/bridges/mul_op.cc
lite/kernels/npu/bridges/mul_op.cc
+1
-1
lite/kernels/npu/bridges/pad2d_op.cc
lite/kernels/npu/bridges/pad2d_op.cc
+1
-1
lite/kernels/npu/bridges/pool_op.cc
lite/kernels/npu/bridges/pool_op.cc
+1
-1
lite/kernels/npu/bridges/reduce_mean_op.cc
lite/kernels/npu/bridges/reduce_mean_op.cc
+1
-1
lite/kernels/npu/bridges/reshape_op.cc
lite/kernels/npu/bridges/reshape_op.cc
+1
-1
lite/kernels/npu/bridges/scale_op.cc
lite/kernels/npu/bridges/scale_op.cc
+1
-1
lite/kernels/npu/bridges/shape_op.cc
lite/kernels/npu/bridges/shape_op.cc
+1
-1
lite/kernels/npu/bridges/shuffle_channel_op.cc
lite/kernels/npu/bridges/shuffle_channel_op.cc
+1
-1
lite/kernels/npu/bridges/softmax_op.cc
lite/kernels/npu/bridges/softmax_op.cc
+1
-1
lite/kernels/npu/bridges/split_op.cc
lite/kernels/npu/bridges/split_op.cc
+1
-1
lite/kernels/npu/bridges/topk_op.cc
lite/kernels/npu/bridges/topk_op.cc
+1
-1
lite/kernels/npu/bridges/transpose_op.cc
lite/kernels/npu/bridges/transpose_op.cc
+1
-1
lite/kernels/npu/bridges/unsqueeze_op.cc
lite/kernels/npu/bridges/unsqueeze_op.cc
+1
-1
lite/kernels/npu/subgraph_compute.cc
lite/kernels/npu/subgraph_compute.cc
+1
-1
lite/kernels/npu/subgraph_compute.h
lite/kernels/npu/subgraph_compute.h
+9
-9
lite/kernels/rknpu/CMakeLists.txt
lite/kernels/rknpu/CMakeLists.txt
+2
-1
lite/kernels/rknpu/bridges/CMakeLists.txt
lite/kernels/rknpu/bridges/CMakeLists.txt
+1
-1
lite/kernels/rknpu/bridges/act_op.cc
lite/kernels/rknpu/bridges/act_op.cc
+2
-2
lite/kernels/rknpu/bridges/batch_norm_op.cc
lite/kernels/rknpu/bridges/batch_norm_op.cc
+1
-1
lite/kernels/rknpu/bridges/concat_op.cc
lite/kernels/rknpu/bridges/concat_op.cc
+1
-1
lite/kernels/rknpu/bridges/conv_op.cc
lite/kernels/rknpu/bridges/conv_op.cc
+1
-1
lite/kernels/rknpu/bridges/elementwise_ops.cc
lite/kernels/rknpu/bridges/elementwise_ops.cc
+1
-1
lite/kernels/rknpu/bridges/fc_op.cc
lite/kernels/rknpu/bridges/fc_op.cc
+1
-1
lite/kernels/rknpu/bridges/pool_op.cc
lite/kernels/rknpu/bridges/pool_op.cc
+1
-1
lite/kernels/rknpu/bridges/softmax_op.cc
lite/kernels/rknpu/bridges/softmax_op.cc
+1
-1
lite/kernels/rknpu/subgraph_compute.cc
lite/kernels/rknpu/subgraph_compute.cc
+1
-1
lite/kernels/rknpu/subgraph_compute.h
lite/kernels/rknpu/subgraph_compute.h
+9
-9
lite/kernels/xpu/CMakeLists.txt
lite/kernels/xpu/CMakeLists.txt
+1
-1
lite/kernels/xpu/bridges/act_op.cc
lite/kernels/xpu/bridges/act_op.cc
+1
-1
lite/kernels/xpu/bridges/batch_norm_op.cc
lite/kernels/xpu/bridges/batch_norm_op.cc
+1
-1
lite/kernels/xpu/bridges/cast_op.cc
lite/kernels/xpu/bridges/cast_op.cc
+1
-1
lite/kernels/xpu/bridges/conv_op.cc
lite/kernels/xpu/bridges/conv_op.cc
+1
-1
lite/kernels/xpu/bridges/dropout_op.cc
lite/kernels/xpu/bridges/dropout_op.cc
+1
-1
lite/kernels/xpu/bridges/elementwise_ops.cc
lite/kernels/xpu/bridges/elementwise_ops.cc
+1
-1
lite/kernels/xpu/bridges/gather_op.cc
lite/kernels/xpu/bridges/gather_op.cc
+1
-1
lite/kernels/xpu/bridges/layer_norm_op.cc
lite/kernels/xpu/bridges/layer_norm_op.cc
+1
-1
lite/kernels/xpu/bridges/lookup_table_op.cc
lite/kernels/xpu/bridges/lookup_table_op.cc
+1
-1
lite/kernels/xpu/bridges/matmul_op.cc
lite/kernels/xpu/bridges/matmul_op.cc
+1
-1
lite/kernels/xpu/bridges/mul_op.cc
lite/kernels/xpu/bridges/mul_op.cc
+1
-1
lite/kernels/xpu/bridges/pool_op.cc
lite/kernels/xpu/bridges/pool_op.cc
+1
-1
lite/kernels/xpu/bridges/reshape_op.cc
lite/kernels/xpu/bridges/reshape_op.cc
+1
-1
lite/kernels/xpu/bridges/scale_op.cc
lite/kernels/xpu/bridges/scale_op.cc
+1
-1
lite/kernels/xpu/bridges/slice_op.cc
lite/kernels/xpu/bridges/slice_op.cc
+1
-1
lite/kernels/xpu/bridges/softmax_op.cc
lite/kernels/xpu/bridges/softmax_op.cc
+1
-1
lite/kernels/xpu/bridges/stack_op.cc
lite/kernels/xpu/bridges/stack_op.cc
+1
-1
lite/kernels/xpu/bridges/transpose_op.cc
lite/kernels/xpu/bridges/transpose_op.cc
+1
-1
lite/kernels/xpu/bridges/yolo_box_op.cc
lite/kernels/xpu/bridges/yolo_box_op.cc
+1
-1
lite/kernels/xpu/subgraph_compute.cc
lite/kernels/xpu/subgraph_compute.cc
+1
-1
lite/kernels/xpu/subgraph_compute.h
lite/kernels/xpu/subgraph_compute.h
+9
-9
未找到文件。
lite/core/CMakeLists.txt
浏览文件 @
53db8325
...
...
@@ -142,6 +142,15 @@ if (NOT LITE_ON_TINY_PUBLISH)
add_subdirectory
(
arena
)
endif
()
if
(
LITE_WITH_NPU OR LITE_WITH_XTCL OR LITE_WITH_BM OR LITE_WITH_RKNPU OR LITE_WITH_MLU OR LITE_WITH_APU OR LITE_WITH_HUAWEI_ASCEND_NPU
)
lite_cc_library
(
subgraph_bridge_registry
SRCS subgraph_bridge_registry.cc
DEPS op
)
lite_cc_library
(
subgraph_engine_base
SRCS subgraph_engine_base.cc
DEPS tensor op scope program
)
endif
()
# for mobile, unnecessary to compile the following testings.
if
(
LITE_WITH_LIGHT_WEIGHT_FRAMEWORK
)
return
()
...
...
lite/
kernels/npu/bridges/
registry.cc
→
lite/
core/subgraph_bridge_
registry.cc
浏览文件 @
53db8325
...
...
@@ -12,21 +12,21 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/
kernels/npu/bridges/
registry.h"
#include "lite/
core/subgraph_bridge_
registry.h"
#include <utility>
namespace
paddle
{
namespace
lite
{
namespace
subgraph
{
Registry
&
Registry
::
Instance
()
{
static
Registry
x
;
SubgraphBridgeRegistry
&
SubgraphBridge
Registry
::
Instance
()
{
static
SubgraphBridge
Registry
x
;
return
x
;
}
void
Registry
::
Insert
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
,
const
cvt_func_type
&
cvt_func_name
)
{
void
SubgraphBridge
Registry
::
Insert
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
,
const
cvt_func_type
&
cvt_func_name
)
{
int
key
=
static_cast
<
int
>
(
target
);
auto
it
=
map_
.
find
(
key
);
if
(
it
==
map_
.
end
())
{
...
...
@@ -35,14 +35,14 @@ void Registry::Insert(const std::string& op_type,
map_
.
at
(
key
).
insert
(
std
::
make_pair
(
op_type
,
cvt_func_name
));
}
const
cvt_func_type
&
Registry
::
Select
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
)
const
{
const
cvt_func_type
&
SubgraphBridgeRegistry
::
Select
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
)
const
{
int
key
=
static_cast
<
int
>
(
target
);
return
map_
.
at
(
key
).
at
(
op_type
);
}
bool
Registry
::
Exists
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
)
const
{
bool
SubgraphBridge
Registry
::
Exists
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
)
const
{
int
key
=
static_cast
<
int
>
(
target
);
bool
found
=
map_
.
find
(
key
)
!=
map_
.
end
();
if
(
found
)
{
...
...
lite/
kernels/npu/bridges/
registry.h
→
lite/
core/subgraph_bridge_
registry.h
浏览文件 @
53db8325
...
...
@@ -36,9 +36,9 @@ inline bool CHECK_REBUILD_WHEN_SHAPE_CHANGED(int status) {
using
cvt_func_type
=
std
::
function
<
int
(
void
*
ctx
,
OpLite
*
op
,
KernelBase
*
kernel
)
>
;
using
cvt_map_type
=
std
::
map
<
int
,
std
::
map
<
std
::
string
,
cvt_func_type
>>
;
class
Registry
{
class
SubgraphBridge
Registry
{
public:
static
Registry
&
Instance
();
static
SubgraphBridge
Registry
&
Instance
();
void
Insert
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
,
...
...
@@ -46,11 +46,11 @@ class Registry {
const
cvt_func_type
&
Select
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
)
const
;
bool
Exists
(
const
std
::
string
&
op_type
,
const
TargetType
&
target
)
const
;
Registry
()
=
default
;
SubgraphBridge
Registry
()
=
default
;
private:
cvt_map_type
map_
;
DISALLOW_COPY_AND_ASSIGN
(
Registry
);
DISALLOW_COPY_AND_ASSIGN
(
SubgraphBridge
Registry
);
};
}
// namespace subgraph
...
...
@@ -69,7 +69,7 @@ class Registry {
"REGISTER_SUBGRAPH_BRIDGE must be called in global namespace only " \
"once!"); \
int __reg_subgraph_bridge_##op_type__##_##target__##_Insert() { \
paddle::lite::subgraph::
Registry::Instance().Insert(
\
paddle::lite::subgraph::
SubgraphBridgeRegistry::Instance().Insert(
\
#op_type__, TARGET(target__), cvt_func_name); \
return 0; \
}
...
...
lite/
kernels/npu/bridges/engin
e.cc
→
lite/
core/subgraph_engine_bas
e.cc
浏览文件 @
53db8325
...
...
@@ -12,23 +12,23 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/
kernels/npu/bridges/engin
e.h"
#include "lite/
core/subgraph_engine_bas
e.h"
#include <sys/time.h>
#include <time.h>
#include <algorithm>
#include <utility>
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
namespace
subgraph
{
Engine
::
Engine
(
KernelContext
*
ctx
,
int
block_idx
,
const
std
::
shared_ptr
<
const
cpp
::
ProgramDesc
>
&
program_desc
,
Scope
*
exec_scope
,
const
std
::
vector
<
std
::
string
>
&
input_names
,
const
std
::
vector
<
std
::
string
>
&
output_names
)
SubgraphEngineBase
::
SubgraphEngineBase
(
KernelContext
*
ctx
,
int
block_idx
,
const
std
::
shared_ptr
<
const
cpp
::
ProgramDesc
>
&
program_desc
,
Scope
*
exec_scope
,
const
std
::
vector
<
std
::
string
>
&
input_names
,
const
std
::
vector
<
std
::
string
>
&
output_names
)
:
ctx_
(
ctx
),
block_idx_
(
block_idx
),
program_desc_
(
program_desc
),
...
...
@@ -43,7 +43,7 @@ Engine::Engine(KernelContext *ctx,
std
::
stable_sort
(
output_names_
.
begin
(),
output_names_
.
end
());
}
bool
Engin
e
::
Run
()
{
bool
SubgraphEngineBas
e
::
Run
()
{
if
(
is_first_epoch_
)
{
PrepareWorkspaceForDeviceProgram
();
is_first_epoch_
=
false
;
...
...
@@ -54,7 +54,7 @@ bool Engine::Run() {
return
LaunchDeviceProgram
();
}
bool
Engin
e
::
PrepareWorkspaceForOriginProgram
()
{
bool
SubgraphEngineBas
e
::
PrepareWorkspaceForOriginProgram
()
{
origin_idims_
.
resize
(
input_names_
.
size
());
origin_itensors_
.
resize
(
input_names_
.
size
());
for
(
int
i
=
0
;
i
<
input_names_
.
size
();
i
++
)
{
...
...
@@ -69,7 +69,7 @@ bool Engine::PrepareWorkspaceForOriginProgram() {
return
true
;
}
bool
Engin
e
::
BuildOriginProgram
()
{
bool
SubgraphEngineBas
e
::
BuildOriginProgram
()
{
// TODO(hong19860320) The block_desc need to be divided into subgraphs during
// the exection time. But only see them as a subgraph now.
if
(
!
origin_program_
)
{
...
...
@@ -79,7 +79,7 @@ bool Engine::BuildOriginProgram() {
return
true
;
}
bool
Engin
e
::
LaunchOriginProgram
()
{
bool
SubgraphEngineBas
e
::
LaunchOriginProgram
()
{
if
(
!
origin_program_
)
{
BuildOriginProgram
();
}
...
...
@@ -91,15 +91,15 @@ bool Engine::LaunchOriginProgram() {
return
false
;
}
bool
Engin
e
::
PrepareWorkspaceForDeviceProgram
()
{
bool
SubgraphEngineBas
e
::
PrepareWorkspaceForDeviceProgram
()
{
return
PrepareWorkspaceForOriginProgram
();
}
bool
Engin
e
::
BuildDeviceProgram
()
{
return
BuildOriginProgram
();
}
bool
SubgraphEngineBas
e
::
BuildDeviceProgram
()
{
return
BuildOriginProgram
();
}
bool
Engin
e
::
LaunchDeviceProgram
()
{
return
LaunchOriginProgram
();
}
bool
SubgraphEngineBas
e
::
LaunchDeviceProgram
()
{
return
LaunchOriginProgram
();
}
bool
Engin
e
::
InputShapeChanged
()
{
bool
SubgraphEngineBas
e
::
InputShapeChanged
()
{
bool
changed
=
false
;
for
(
size_t
i
=
0
;
i
<
origin_itensors_
.
size
();
i
++
)
{
auto
origin_idim
=
origin_itensors_
[
i
]
->
dims
().
Vectorize
();
...
...
lite/
kernels/npu/bridges/engin
e.h
→
lite/
core/subgraph_engine_bas
e.h
浏览文件 @
53db8325
...
...
@@ -26,20 +26,21 @@ namespace paddle {
namespace
lite
{
namespace
subgraph
{
class
Engin
e
{
class
SubgraphEngineBas
e
{
public:
Engine
(
KernelContext
*
ctx
,
int
block_idx
,
const
std
::
shared_ptr
<
const
cpp
::
ProgramDesc
>
&
program_desc
,
Scope
*
exec_scope
,
const
std
::
vector
<
std
::
string
>
&
input_names
,
const
std
::
vector
<
std
::
string
>
&
output_names
);
virtual
~
Engine
()
=
default
;
SubgraphEngineBase
(
KernelContext
*
ctx
,
int
block_idx
,
const
std
::
shared_ptr
<
const
cpp
::
ProgramDesc
>
&
program_desc
,
Scope
*
exec_scope
,
const
std
::
vector
<
std
::
string
>
&
input_names
,
const
std
::
vector
<
std
::
string
>
&
output_names
);
virtual
~
SubgraphEngineBase
()
=
default
;
virtual
bool
Run
();
private:
Engine
(
const
Engin
e
&
)
=
delete
;
SubgraphEngineBase
(
const
SubgraphEngineBas
e
&
)
=
delete
;
protected:
virtual
bool
PrepareWorkspaceForOriginProgram
();
...
...
lite/kernels/apu/CMakeLists.txt
浏览文件 @
53db8325
add_subdirectory
(
bridges
)
add_kernel
(
subgraph_compute_apu APU basic SRCS subgraph_compute.cc DEPS
${
lite_kernel_deps
}
device_apu neuron_adapter subgraph_
bridge_engin
e
${
apu_subgraph_bridges
}
)
add_kernel
(
subgraph_compute_apu APU basic SRCS subgraph_compute.cc DEPS
${
lite_kernel_deps
}
device_apu neuron_adapter subgraph_
engine_bas
e
${
apu_subgraph_bridges
}
)
lite/kernels/apu/bridges/act_op.cc
浏览文件 @
53db8325
...
...
@@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/apu/bridges/graph.h"
#include "lite/kernels/apu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/apu/bridges/conv_op.cc
浏览文件 @
53db8325
...
...
@@ -15,9 +15,9 @@
#include "lite/operators/conv_op.h"
#include <iostream>
#include <vector>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/apu/bridges/graph.h"
#include "lite/kernels/apu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/apu/bridges/elementwise_ops.cc
浏览文件 @
53db8325
...
...
@@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/apu/bridges/graph.h"
#include "lite/kernels/
npu/bridges/registr
y.h"
#include "lite/kernels/
apu/bridges/utilit
y.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/apu/bridges/fc_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/apu/bridges/graph.h"
#include "lite/kernels/apu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/apu/bridges/pool_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
#include "lite/operators/pool_op.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/apu/bridges/graph.h"
#include "lite/kernels/apu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/apu/bridges/softmax_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/apu/bridges/graph.h"
#include "lite/kernels/apu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/apu/subgraph_compute.cc
浏览文件 @
53db8325
...
...
@@ -50,7 +50,7 @@ bool SubgraphEngine::BuildDeviceProgram() {
// Convert all of ops and their input vars and weights and added into the APU
// NIR graph
const
auto
&
bridges
=
subgraph
::
Registry
::
Instance
();
const
auto
&
bridges
=
subgraph
::
SubgraphBridge
Registry
::
Instance
();
const
auto
&
insts
=
origin_program_
->
instructions
(
kRootBlockIdx
);
for
(
auto
&
inst
:
insts
)
{
auto
op
=
const_cast
<
OpLite
*>
(
inst
.
op
());
...
...
lite/kernels/apu/subgraph_compute.h
浏览文件 @
53db8325
...
...
@@ -19,15 +19,15 @@
#include <vector>
#include "NeuronAdapter.h"
#include "lite/core/kernel.h"
#include "lite/
kernels/npu/bridges/engine
.h"
#include "lite/
kernels/npu/bridges/registry
.h"
#include "lite/
core/subgraph_bridge_registry
.h"
#include "lite/
core/subgraph_engine_base
.h"
namespace
paddle
{
namespace
lite
{
namespace
kernels
{
namespace
apu
{
class
SubgraphEngine
:
public
subgraph
::
Engin
e
{
class
SubgraphEngine
:
public
subgraph
::
SubgraphEngineBas
e
{
public:
SubgraphEngine
(
KernelContext
*
ctx
,
int
block_idx
,
...
...
@@ -35,12 +35,12 @@ class SubgraphEngine : public subgraph::Engine {
Scope
*
exec_scope
,
const
std
::
vector
<
std
::
string
>
&
input_names
,
const
std
::
vector
<
std
::
string
>
&
output_names
)
:
subgraph
::
Engin
e
(
ctx
,
block_idx
,
program_desc
,
exec_scope
,
input_names
,
output_names
)
{}
:
subgraph
::
SubgraphEngineBas
e
(
ctx
,
block_idx
,
program_desc
,
exec_scope
,
input_names
,
output_names
)
{}
~
SubgraphEngine
();
...
...
lite/kernels/bm/CMakeLists.txt
浏览文件 @
53db8325
...
...
@@ -3,4 +3,4 @@ if(NOT LITE_WITH_BM)
endif
()
add_subdirectory
(
bridges
)
add_kernel
(
subgraph_compute_bm BM basic SRCS subgraph_compute.cc DEPS
${
lite_kernel_deps
}
${
bm_subgraph_bridges
}
)
add_kernel
(
subgraph_compute_bm BM basic SRCS subgraph_compute.cc DEPS
${
lite_kernel_deps
}
subgraph_engine_base
${
bm_subgraph_bridges
}
)
lite/kernels/bm/bridges/CMakeLists.txt
浏览文件 @
53db8325
...
...
@@ -5,7 +5,7 @@ endif()
lite_cc_library
(
subgraph_bridge_utility_bm SRCS utility.cc DEPS
)
lite_cc_library
(
subgraph_bridge_graph_bm SRCS graph.cc DEPS subgraph_bridge_utility_bm
)
set
(
bm_subgraph_bridge_deps subgraph_bridge_registry subgraph_bridge_
engine subgraph_bridge_
utility_bm subgraph_bridge_graph_bm
)
set
(
bm_subgraph_bridge_deps subgraph_bridge_registry subgraph_bridge_utility_bm subgraph_bridge_graph_bm
)
lite_cc_library
(
subgraph_bridge_act_op_bm SRCS act_op.cc DEPS
${
bm_subgraph_bridge_deps
}
)
lite_cc_library
(
subgraph_bridge_conv_op_bm SRCS conv_op.cc DEPS
${
bm_subgraph_bridge_deps
}
)
...
...
@@ -40,7 +40,6 @@ lite_cc_library(subgraph_bridge_swish_op_bm SRCS swish_op.cc DEPS ${bm_subgraph_
set
(
bm_subgraph_bridges
subgraph_bridge_registry
subgraph_bridge_engine
subgraph_bridge_graph_bm
subgraph_bridge_act_op_bm
subgraph_bridge_conv_op_bm
...
...
lite/kernels/bm/bridges/act_op.cc
浏览文件 @
53db8325
...
...
@@ -15,8 +15,8 @@
#include <bmcompiler_if.h>
#include <bmcompiler_if_lite.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/assign_value_op.cc
浏览文件 @
53db8325
...
...
@@ -15,9 +15,9 @@
#include <bmcompiler_defs.h>
#include <bmcompiler_if.h>
#include <bmcompiler_if_lite.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/batch_norm_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <math.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/box_coder_op.cc
浏览文件 @
53db8325
...
...
@@ -16,9 +16,9 @@
#include <iostream>
#include <string>
#include <vector>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/cast_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_defs.h>
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/concat_op.cc
浏览文件 @
53db8325
...
...
@@ -11,10 +11,11 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/conv_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/conv_transpose_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/density_prior_box_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <math.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/dropout_op.cc
浏览文件 @
53db8325
...
...
@@ -11,11 +11,12 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <bmcompiler_if.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/elementwise_ops.cc
浏览文件 @
53db8325
...
...
@@ -11,13 +11,14 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <bmcompiler_defs.h>
#include <bmcompiler_if.h>
#include <bmcompiler_if_lite.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/fill_constant_op.cc
浏览文件 @
53db8325
...
...
@@ -15,9 +15,9 @@
#include <bmcompiler_defs.h>
#include <bmcompiler_if.h>
#include <bmcompiler_if_lite.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/interpolate_op.cc
浏览文件 @
53db8325
...
...
@@ -13,8 +13,8 @@
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/matmul_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/mul_op.cc
浏览文件 @
53db8325
...
...
@@ -11,10 +11,11 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/multiclass_nms_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <user_bmcpu_common.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/norm_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/pool_op.cc
浏览文件 @
53db8325
...
...
@@ -11,13 +11,14 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <bmcompiler_defs.h>
#include <bmcompiler_if.h>
#include <bmcompiler_if_lite.h>
#include <user_bmcpu_common.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/prior_box_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/reduce_full_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/reshape_op.cc
浏览文件 @
53db8325
...
...
@@ -13,8 +13,8 @@
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/scale_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/shape_op.cc
浏览文件 @
53db8325
...
...
@@ -15,9 +15,9 @@
#include <bmcompiler_defs.h>
#include <bmcompiler_if.h>
#include <bmcompiler_if_lite.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/slice_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/softmax_op.cc
浏览文件 @
53db8325
...
...
@@ -11,10 +11,11 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/split_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/squeeze_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_if.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/swish_op.cc
浏览文件 @
53db8325
...
...
@@ -11,11 +11,12 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <bmcompiler_if.h>
#include <bmcompiler_op_code.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/transpose_op.cc
浏览文件 @
53db8325
...
...
@@ -14,9 +14,9 @@
#include <bmcompiler_defs.h>
#include <bmcompiler_if.h>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/bridges/yolo_box_op.cc
浏览文件 @
53db8325
...
...
@@ -17,9 +17,9 @@
#include <iostream>
#include <string>
#include <vector>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/bm/bridges/graph.h"
#include "lite/kernels/bm/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/bm/subgraph_compute.cc
浏览文件 @
53db8325
...
...
@@ -31,7 +31,7 @@ namespace bm {
bool
SubgraphEngine
::
BuildDeviceProgram
()
{
int
status
=
0
;
subgraph
::
bm
::
Graph
graph
;
const
auto
&
bridges
=
subgraph
::
Registry
::
Instance
();
const
auto
&
bridges
=
subgraph
::
SubgraphBridge
Registry
::
Instance
();
graph
.
CreateCompilerHandle
();
auto
&
ctx
=
this
->
ctx_
->
template
As
<
BMContext
>();
for
(
size_t
i
=
0
;
i
<
input_names_
.
size
();
i
++
)
{
...
...
lite/kernels/bm/subgraph_compute.h
浏览文件 @
53db8325
...
...
@@ -23,16 +23,16 @@
#include "lite/core/kernel.h"
#include "lite/core/op_registry.h"
#include "lite/core/program.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/core/subgraph_engine_base.h"
#include "lite/core/types.h"
#include "lite/kernels/npu/bridges/engine.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
namespace
kernels
{
namespace
bm
{
class
SubgraphEngine
:
public
subgraph
::
Engin
e
{
class
SubgraphEngine
:
public
subgraph
::
SubgraphEngineBas
e
{
public:
SubgraphEngine
(
KernelContext
*
ctx
,
int
block_idx
,
...
...
@@ -40,12 +40,12 @@ class SubgraphEngine : public subgraph::Engine {
Scope
*
exec_scope
,
const
std
::
vector
<
std
::
string
>
&
input_names
,
const
std
::
vector
<
std
::
string
>
&
output_names
)
:
subgraph
::
Engin
e
(
ctx
,
block_idx
,
program_desc
,
exec_scope
,
input_names
,
output_names
)
{}
:
subgraph
::
SubgraphEngineBas
e
(
ctx
,
block_idx
,
program_desc
,
exec_scope
,
input_names
,
output_names
)
{}
protected:
bool
BuildDeviceProgram
()
override
;
...
...
lite/kernels/huawei_ascend_npu/CMakeLists.txt
浏览文件 @
53db8325
add_subdirectory
(
bridges
)
add_kernel
(
subgraph_compute_huawei_ascend_npu HUAWEI_ASCEND_NPU basic SRCS subgraph_compute.cc DEPS
${
lite_kernel_deps
}
device_huawei_ascend_npu subgraph_
bridge_engin
e
${
huawei_ascend_npu_subgraph_bridges
}
)
add_kernel
(
subgraph_compute_huawei_ascend_npu HUAWEI_ASCEND_NPU basic SRCS subgraph_compute.cc DEPS
${
lite_kernel_deps
}
device_huawei_ascend_npu subgraph_
engine_bas
e
${
huawei_ascend_npu_subgraph_bridges
}
)
lite/kernels/huawei_ascend_npu/bridges/CMakeLists.txt
浏览文件 @
53db8325
...
...
@@ -5,7 +5,7 @@ endif()
lite_cc_library
(
subgraph_bridge_utility_huawei_ascend_npu SRCS utility.cc DEPS
)
lite_cc_library
(
subgraph_bridge_graph_huawei_ascend_npu SRCS graph.cc DEPS subgraph_bridge_utility_huawei_ascend_npu
)
set
(
huawei_ascend_npu_subgraph_bridge_deps subgraph_bridge_registry subgraph_bridge_
engine subgraph_bridge_
utility_huawei_ascend_npu subgraph_bridge_graph_huawei_ascend_npu
)
set
(
huawei_ascend_npu_subgraph_bridge_deps subgraph_bridge_registry subgraph_bridge_utility_huawei_ascend_npu subgraph_bridge_graph_huawei_ascend_npu
)
lite_cc_library
(
subgraph_bridge_act_op_huawei_ascend_npu SRCS act_op.cc DEPS
${
huawei_ascend_npu_subgraph_bridge_deps
}
)
lite_cc_library
(
subgraph_bridge_conv_op_huawei_ascend_npu SRCS conv_op.cc DEPS
${
huawei_ascend_npu_subgraph_bridge_deps
}
)
...
...
@@ -29,7 +29,6 @@ lite_cc_library(subgraph_bridge_gather_op_huawei_ascend_npu SRCS gather_op.cc DE
set
(
huawei_ascend_npu_subgraph_bridges
subgraph_bridge_registry
subgraph_bridge_engine
subgraph_bridge_graph_huawei_ascend_npu
subgraph_bridge_act_op_huawei_ascend_npu
subgraph_bridge_conv_op_huawei_ascend_npu
...
...
lite/kernels/huawei_ascend_npu/bridges/act_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/batch_norm_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/cast_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/concat_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/conv_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
#include "lite/operators/conv_op.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/dropout_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/elementwise_ops.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/fc_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/flatten_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/gather_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/interpolate_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
// #include "lite/operators/interpolate_op.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/layer_norm_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/matmul_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/pool_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
#include "lite/operators/pool_op.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/reshape_op.cc
浏览文件 @
53db8325
...
...
@@ -13,9 +13,9 @@
// limitations under the License.
#include "lite/operators/reshape_op.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/scale_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/slice_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/softmax_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/bridges/transpose_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/huawei_ascend_npu/bridges/graph.h"
#include "lite/kernels/huawei_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/huawei_ascend_npu/subgraph_compute.cc
浏览文件 @
53db8325
...
...
@@ -119,7 +119,7 @@ bool DeviceProgram::BuildGraphAndCacheToFile(
// then added them into the IR graph
int
status
=
0
;
subgraph
::
huawei_ascend_npu
::
Graph
graph
;
const
auto
&
bridges
=
subgraph
::
Registry
::
Instance
();
const
auto
&
bridges
=
subgraph
::
SubgraphBridge
Registry
::
Instance
();
CHECK
(
origin_program
)
<<
"[HUAWEI_ASCEND_NPU] The origin program is not initialized!"
;
CHECK_GT
(
origin_program
->
instructions
(
kRootBlockIdx
).
size
(),
0
)
...
...
lite/kernels/huawei_ascend_npu/subgraph_compute.h
浏览文件 @
53db8325
...
...
@@ -21,8 +21,8 @@
#include "graph/tensor.h"
#include "lite/backends/huawei_ascend_npu/device.h"
#include "lite/core/kernel.h"
#include "lite/
kernels/npu/bridges/engine
.h"
#include "lite/
kernels/npu/bridges/registry
.h"
#include "lite/
core/subgraph_bridge_registry
.h"
#include "lite/
core/subgraph_engine_base
.h"
namespace
paddle
{
namespace
lite
{
...
...
@@ -76,7 +76,7 @@ class DeviceProgram {
std
::
vector
<
TensorDesc
>
device_odims_
{};
};
class
SubgraphEngine
:
public
subgraph
::
Engin
e
{
class
SubgraphEngine
:
public
subgraph
::
SubgraphEngineBas
e
{
public:
SubgraphEngine
(
KernelContext
*
ctx
,
int
block_idx
,
...
...
@@ -84,12 +84,12 @@ class SubgraphEngine : public subgraph::Engine {
Scope
*
exec_scope
,
const
std
::
vector
<
std
::
string
>&
input_names
,
const
std
::
vector
<
std
::
string
>&
output_names
)
:
subgraph
::
Engin
e
(
ctx
,
block_idx
,
program_desc
,
exec_scope
,
input_names
,
output_names
)
{}
:
subgraph
::
SubgraphEngineBas
e
(
ctx
,
block_idx
,
program_desc
,
exec_scope
,
input_names
,
output_names
)
{}
protected:
bool
PrepareWorkspaceForDeviceProgram
()
override
;
...
...
lite/kernels/mlu/CMakeLists.txt
浏览文件 @
53db8325
...
...
@@ -3,7 +3,7 @@ if(NOT LITE_WITH_MLU)
endif
()
add_subdirectory
(
bridges
)
add_kernel
(
subgraph_compute_mlu MLU basic SRCS subgraph_compute.cc DEPS
${
lite_kernel_deps
}
${
mlu_subgraph_bridges
}
)
add_kernel
(
subgraph_compute_mlu MLU basic SRCS subgraph_compute.cc DEPS
${
lite_kernel_deps
}
subgraph_engine_base
${
mlu_subgraph_bridges
}
)
add_kernel
(
io_copy_compute_mlu MLU basic SRCS io_copy_compute.cc DEPS
${
lite_kernel_deps
}
${
target_wrapper_mlu
}
)
add_kernel
(
calib_compute_mlu MLU basic SRCS calib_compute.cc DEPS
${
lite_kernel_deps
}
)
# depend on transpose function in backend/x86/math/math_function
...
...
lite/kernels/mlu/bridges/CMakeLists.txt
浏览文件 @
53db8325
...
...
@@ -6,7 +6,7 @@ lite_cc_library(subgraph_bridge_utility_mlu SRCS utility.cc DEPS ${mlu_builder_l
lite_cc_library
(
subgraph_bridge_tensor_mlu SRCS tensor.cc DEPS
${
mlu_builder_libs
}
subgraph_bridge_utility_mlu
)
lite_cc_library
(
subgraph_bridge_graph_mlu SRCS graph.cc DEPS subgraph_bridge_utility_mlu subgraph_bridge_tensor_mlu
)
set
(
mlu_subgraph_bridge_deps subgraph_bridge_registry subgraph_bridge_
engine subgraph_bridge_
utility_mlu subgraph_bridge_graph_mlu
)
set
(
mlu_subgraph_bridge_deps subgraph_bridge_registry subgraph_bridge_utility_mlu subgraph_bridge_graph_mlu
)
lite_cc_library
(
subgraph_bridge_act_op_mlu SRCS act_op.cc DEPS
${
mlu_subgraph_bridge_deps
}
)
lite_cc_library
(
subgraph_bridge_batch_norm_op_mlu SRCS batch_norm_op.cc DEPS
${
mlu_subgraph_bridge_deps
}
)
...
...
lite/kernels/mlu/bridges/act_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/act_op_test.cc
浏览文件 @
53db8325
...
...
@@ -18,8 +18,8 @@
#include "lite/core/op_lite.h"
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/npu/bridges/registry.h"
#include "lite/operators/activation_ops.h"
namespace
paddle
{
...
...
lite/kernels/mlu/bridges/argmax_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/argmax_op_test.cc
浏览文件 @
53db8325
...
...
@@ -20,9 +20,9 @@
#include <iostream>
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
namespace
subgraph
{
...
...
lite/kernels/mlu/bridges/batch_norm_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/batch_norm_op_test.cc
浏览文件 @
53db8325
...
...
@@ -15,8 +15,8 @@
#include "lite/operators/batch_norm_op.h"
#include <gtest/gtest.h>
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/cast_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/cast_op_test.cc
浏览文件 @
53db8325
...
...
@@ -16,9 +16,9 @@
#include <gtest/gtest.h>
#include "lite/core/op_lite.h"
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/concat_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/concat_op_test.cc
浏览文件 @
53db8325
...
...
@@ -17,8 +17,8 @@
#include <random>
#include "lite/core/op_lite.h"
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/conv_op.cc
浏览文件 @
53db8325
...
...
@@ -16,9 +16,9 @@
#include <algorithm>
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/conv_op_test.cc
浏览文件 @
53db8325
...
...
@@ -20,8 +20,8 @@
#include "lite/core/op_lite.h"
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/dropout_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/dropout_op_test.cc
浏览文件 @
53db8325
...
...
@@ -16,8 +16,8 @@
#include <gtest/gtest.h>
#include <random>
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/elementwise_ops.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/elementwise_ops_test.cc
浏览文件 @
53db8325
...
...
@@ -16,8 +16,8 @@
#include <gtest/gtest.h>
#include <random>
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/fc_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/fc_op_test.cc
浏览文件 @
53db8325
...
...
@@ -16,8 +16,8 @@
#include <gtest/gtest.h>
#include "lite/core/op_lite.h"
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/flatten_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/flatten_op_test.cc
浏览文件 @
53db8325
...
...
@@ -19,8 +19,8 @@
#include <random>
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/gather_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/gather_op_test.cc
浏览文件 @
53db8325
...
...
@@ -16,9 +16,9 @@
#include <gtest/gtest.h>
#include "lite/core/op_lite.h"
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/interpolate_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/interpolate_op_test.cc
浏览文件 @
53db8325
...
...
@@ -18,9 +18,9 @@
#include "lite/core/device_info.h"
#include "lite/core/op_lite.h"
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/layout_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/layout_op_test.cc
浏览文件 @
53db8325
...
...
@@ -16,9 +16,9 @@
#include <gtest/gtest.h>
#include "lite/core/op_lite.h"
#include "lite/core/op_registry.h"
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/test_helper.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/lrn_op.cc
浏览文件 @
53db8325
...
...
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "lite/core/subgraph_bridge_registry.h"
#include "lite/kernels/mlu/bridges/graph.h"
#include "lite/kernels/mlu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/mlu/bridges/lrn_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/norm_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/norm_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/pool_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/pool_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/reshape_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/reshape_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/scale_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/scale_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/slice_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/slice_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/softmax_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/softmax_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/split_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/split_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/squeeze_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/squeeze_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/test_helper.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/transpose_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/bridges/transpose_op_test.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/mlu/subgraph_compute.h
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/CMakeLists.txt
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/CMakeLists.txt
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/act_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/argmax_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/batch_norm_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/compare_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/concat_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/conv_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/conv_transpose_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/dropout_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/elementwise_ops.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/expand_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/fc_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/fill_constant_batch_size_like_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/fill_constant_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/gather_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/increment_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/instance_norm_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/interpolate_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/layer_norm_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/lookup_table_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/matmul_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/mul_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/pad2d_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/pool_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/reduce_mean_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/reshape_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/scale_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/shape_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/shuffle_channel_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/softmax_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/split_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/topk_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/transpose_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/bridges/unsqueeze_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/subgraph_compute.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/npu/subgraph_compute.h
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/CMakeLists.txt
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/CMakeLists.txt
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/act_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/batch_norm_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/concat_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/conv_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/elementwise_ops.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/fc_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/pool_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/bridges/softmax_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/subgraph_compute.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/rknpu/subgraph_compute.h
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/CMakeLists.txt
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/act_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/batch_norm_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/cast_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/conv_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/dropout_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/elementwise_ops.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/gather_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/layer_norm_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/lookup_table_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/matmul_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/mul_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/pool_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/reshape_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/scale_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/slice_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/softmax_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/stack_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/transpose_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/bridges/yolo_box_op.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/subgraph_compute.cc
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
lite/kernels/xpu/subgraph_compute.h
浏览文件 @
53db8325
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录