Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
a50cc4dc
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看板
提交
a50cc4dc
编写于
4月 01, 2020
作者:
D
DannyIsFunny
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test=develop
上级
41d46ab2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
4 addition
and
6 deletion
+4
-6
lite/api/CMakeLists.txt
lite/api/CMakeLists.txt
+1
-1
lite/api/cxx_api.h
lite/api/cxx_api.h
+0
-2
lite/core/optimizer.h
lite/core/optimizer.h
+0
-1
lite/kernels/host/multiclass_nms_compute.cc
lite/kernels/host/multiclass_nms_compute.cc
+1
-0
lite/utils/CMakeLists.txt
lite/utils/CMakeLists.txt
+1
-1
lite/utils/cp_logging.h
lite/utils/cp_logging.h
+1
-1
未找到文件。
lite/api/CMakeLists.txt
浏览文件 @
a50cc4dc
if
(
LITE_WITH_LIGHT_WEIGHT_FRAMEWORK
)
if
(
LITE_WITH_LIGHT_WEIGHT_FRAMEWORK
OR LITE_SHUTDOWN_LOG
)
lite_cc_library
(
place SRCS paddle_place.cc DEPS logging
)
else
()
lite_cc_library
(
place SRCS paddle_place.cc DEPS glog
)
...
...
lite/api/cxx_api.h
浏览文件 @
a50cc4dc
...
...
@@ -56,9 +56,7 @@ class LITE_API Predictor {
Program
program
(
*
desc
.
get
(),
scope_
,
valid_places
);
optimizer_
=
Optimizer
(
std
::
move
(
program
),
valid_places
);
exec_scope_
=
optimizer_
.
exec_scope
();
GenRuntimeProgram
();
valid_places_
=
valid_places
;
PrepareFeedFetch
();
}
// Build from a model, with places set for hardware config.
...
...
lite/core/optimizer.h
浏览文件 @
a50cc4dc
...
...
@@ -60,7 +60,6 @@ class Optimizer {
program_
=
&
program
;
valid_places_
=
valid_places
;
CHECK
(
!
valid_places
.
empty
())
<<
"At least one valid_place should be set"
;
CHECK
(
!
graph_
)
<<
"duplicate optimize found"
;
graph_
.
reset
(
new
mir
::
SSAGraph
);
graph_
->
Build
(
program
,
valid_places
);
...
...
lite/kernels/host/multiclass_nms_compute.cc
浏览文件 @
a50cc4dc
...
...
@@ -92,6 +92,7 @@ T PolyIoU(const T* box1,
const
size_t
box_size
,
const
bool
normalized
)
{
LOG
(
FATAL
)
<<
"PolyIoU not implement."
;
return
*
box1
;
}
template
<
class
T
>
...
...
lite/utils/CMakeLists.txt
浏览文件 @
a50cc4dc
...
...
@@ -3,7 +3,7 @@
# else()
# endif()
if
(
LITE_WITH_LIGHT_WEIGHT_FRAMEWORK OR LITE_ON_MODEL_OPTIMIZE_TOOL
)
if
(
LITE_WITH_LIGHT_WEIGHT_FRAMEWORK OR LITE_ON_MODEL_OPTIMIZE_TOOL
OR LITE_SHUTDOWN_LOG
)
lite_cc_library
(
logging SRCS logging.cc
)
set
(
utils_DEPS logging
)
lite_cc_test
(
test_logging SRCS logging_test.cc DEPS
${
utils_DEPS
}
)
...
...
lite/utils/cp_logging.h
浏览文件 @
a50cc4dc
...
...
@@ -14,7 +14,7 @@
#pragma once
#if defined(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK) || \
defined(LITE_ON_MODEL_OPTIMIZE_TOOL)
defined(LITE_ON_MODEL_OPTIMIZE_TOOL)
|| defined(LITE_SHUTDOWN_LOG)
#include "lite/utils/logging.h"
#else // LITE_WITH_LIGHT_WEIGHT_FRAMEWORK
#include <glog/logging.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录