Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
b80194db
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看板
未验证
提交
b80194db
编写于
4月 03, 2020
作者:
H
huzhiqiang
提交者:
GitHub
4月 03, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BUG FIX][OPT] fix the issue that opt can not support host kernels #3349
上级
3ddd9ed4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
7 deletion
+4
-7
cmake/lite.cmake
cmake/lite.cmake
+1
-6
lite/api/CMakeLists.txt
lite/api/CMakeLists.txt
+1
-1
lite/api/opt.cc
lite/api/opt.cc
+1
-0
lite/kernels/host/multiclass_nms_compute.cc
lite/kernels/host/multiclass_nms_compute.cc
+1
-0
未找到文件。
cmake/lite.cmake
浏览文件 @
b80194db
...
@@ -325,16 +325,11 @@ function(add_kernel TARGET device level)
...
@@ -325,16 +325,11 @@ function(add_kernel TARGET device level)
set
(
arm_kernels
"
${
arm_kernels
}
;
${
TARGET
}
"
CACHE INTERNAL
""
)
set
(
arm_kernels
"
${
arm_kernels
}
;
${
TARGET
}
"
CACHE INTERNAL
""
)
endif
()
endif
()
if
(
"
${
device
}
"
STREQUAL
"X86"
)
if
(
"
${
device
}
"
STREQUAL
"X86"
)
if
(
NOT LITE_WITH_X86
)
if
(
NOT LITE_WITH_X86
OR LITE_ON_MODEL_OPTIMIZE_TOOL
)
foreach
(
src
${
args_SRCS
}
)
foreach
(
src
${
args_SRCS
}
)
file
(
APPEND
${
fake_kernels_src_list
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
src
}
\n
"
)
file
(
APPEND
${
fake_kernels_src_list
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
src
}
\n
"
)
endforeach
()
endforeach
()
return
()
return
()
elseif
(
LITE_ON_MODEL_OPTIMIZE_TOOL
)
foreach
(
src
${
args_SRCS
}
)
file
(
APPEND
${
kernels_src_list
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
src
}
\n
"
)
endforeach
()
return
()
endif
()
endif
()
set
(
x86_kernels
"
${
x86_kernels
}
;
${
TARGET
}
"
CACHE INTERNAL
""
)
set
(
x86_kernels
"
${
x86_kernels
}
;
${
TARGET
}
"
CACHE INTERNAL
""
)
endif
()
endif
()
...
...
lite/api/CMakeLists.txt
浏览文件 @
b80194db
...
@@ -312,7 +312,7 @@ add_dependencies(opt_base supported_kernel_op_info_h framework_proto all_kernel_
...
@@ -312,7 +312,7 @@ add_dependencies(opt_base supported_kernel_op_info_h framework_proto all_kernel_
if
(
LITE_ON_MODEL_OPTIMIZE_TOOL
)
if
(
LITE_ON_MODEL_OPTIMIZE_TOOL
)
message
(
STATUS
"Compiling opt"
)
message
(
STATUS
"Compiling opt"
)
lite_cc_binary
(
opt SRCS opt.cc cxx_api_impl.cc paddle_api.cc cxx_api.cc
lite_cc_binary
(
opt SRCS opt.cc cxx_api_impl.cc paddle_api.cc cxx_api.cc
DEPS gflags kernel op optimizer mir_passes utils
)
DEPS gflags kernel op optimizer mir_passes utils
${
host_kernels
}
)
add_dependencies
(
opt op_list_h kernel_list_h all_kernel_faked_cc supported_kernel_op_info_h
)
add_dependencies
(
opt op_list_h kernel_list_h all_kernel_faked_cc supported_kernel_op_info_h
)
endif
(
LITE_ON_MODEL_OPTIMIZE_TOOL
)
endif
(
LITE_ON_MODEL_OPTIMIZE_TOOL
)
...
...
lite/api/opt.cc
浏览文件 @
b80194db
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "kernel_src_map.h" // NOLINT
#include "kernel_src_map.h" // NOLINT
#include "lite/api/cxx_api.h"
#include "lite/api/cxx_api.h"
#include "lite/api/paddle_api.h"
#include "lite/api/paddle_api.h"
#include "lite/api/paddle_use_kernels.h"
#include "lite/api/paddle_use_ops.h"
#include "lite/api/paddle_use_ops.h"
#include "lite/api/paddle_use_passes.h"
#include "lite/api/paddle_use_passes.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
...
...
lite/kernels/host/multiclass_nms_compute.cc
浏览文件 @
b80194db
...
@@ -92,6 +92,7 @@ T PolyIoU(const T* box1,
...
@@ -92,6 +92,7 @@ T PolyIoU(const T* box1,
const
size_t
box_size
,
const
size_t
box_size
,
const
bool
normalized
)
{
const
bool
normalized
)
{
LOG
(
FATAL
)
<<
"PolyIoU not implement."
;
LOG
(
FATAL
)
<<
"PolyIoU not implement."
;
return
*
box1
;
}
}
template
<
class
T
>
template
<
class
T
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录