Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
f826dc01
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看板
提交
f826dc01
编写于
2月 17, 2020
作者:
M
MyPandaShaoxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix compile problem
上级
0cd75c62
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
1 addition
and
11 deletion
+1
-11
lite/core/mir/fusion/quant_dequant_op_fuser.cc
lite/core/mir/fusion/quant_dequant_op_fuser.cc
+0
-6
lite/core/mir/kernel_place_correct_pass.h
lite/core/mir/kernel_place_correct_pass.h
+0
-2
lite/gen_code/paddle_infer.h
lite/gen_code/paddle_infer.h
+1
-0
lite/kernels/host/one_hot_compute.cc
lite/kernels/host/one_hot_compute.cc
+0
-1
lite/operators/one_hot_op.cc
lite/operators/one_hot_op.cc
+0
-2
未找到文件。
lite/core/mir/fusion/quant_dequant_op_fuser.cc
浏览文件 @
f826dc01
...
@@ -103,12 +103,6 @@ void DeleteDynamicQuantOpFuser::InsertNewNode(SSAGraph* graph,
...
@@ -103,12 +103,6 @@ void DeleteDynamicQuantOpFuser::InsertNewNode(SSAGraph* graph,
// obtain values, save values and relink node
// obtain values, save values and relink node
int
bit_length
=
quant_node
->
stmt
()
->
op_info
()
->
GetAttr
<
int
>
(
"bit_length"
);
int
bit_length
=
quant_node
->
stmt
()
->
op_info
()
->
GetAttr
<
int
>
(
"bit_length"
);
int
range
=
((
1
<<
(
bit_length
-
1
))
-
1
);
auto
*
scope
=
quant_node
->
stmt
()
->
op
()
->
scope
();
auto
*
scale_tensor
=
scope
->
FindVar
(
output_scale_node
->
arg
()
->
name
)
->
GetMutable
<
lite
::
Tensor
>
();
float
scale_value
=
scale_tensor
->
data
<
float
>
()[
0
]
/
range
;
auto
outlinks
=
output_act_node
->
outlinks
;
auto
outlinks
=
output_act_node
->
outlinks
;
for
(
auto
*
quantized_node
:
outlinks
)
{
for
(
auto
*
quantized_node
:
outlinks
)
{
auto
*
op_desc
=
quantized_node
->
stmt
()
->
mutable_op_info
();
auto
*
op_desc
=
quantized_node
->
stmt
()
->
mutable_op_info
();
...
...
lite/core/mir/kernel_place_correct_pass.h
浏览文件 @
f826dc01
...
@@ -86,7 +86,6 @@ class KernelPlaceCorrectPass : public DebugPass {
...
@@ -86,7 +86,6 @@ class KernelPlaceCorrectPass : public DebugPass {
<<
node_name
;
<<
node_name
;
VLOG
(
4
)
<<
"-- input arg_name:"
<<
arg_name
<<
" "
VLOG
(
4
)
<<
"-- input arg_name:"
<<
arg_name
<<
" "
<<
"-- node name:"
<<
node_name
;
<<
"-- node name:"
<<
node_name
;
auto
type
=
inst
.
picked_kernel
().
GetInputDeclType
(
arg_name
);
if
(
!
x_in
->
AsArg
().
type
)
{
if
(
!
x_in
->
AsArg
().
type
)
{
need_correct_place
&=
false
;
need_correct_place
&=
false
;
}
else
{
}
else
{
...
@@ -108,7 +107,6 @@ class KernelPlaceCorrectPass : public DebugPass {
...
@@ -108,7 +107,6 @@ class KernelPlaceCorrectPass : public DebugPass {
<<
node_name
<<
" in Inst "
<<
node_name
<<
" in Inst "
<<
inst
.
op_type
();
<<
inst
.
op_type
();
VLOG
(
4
)
<<
"-- output arg_name "
<<
arg_name
;
VLOG
(
4
)
<<
"-- output arg_name "
<<
arg_name
;
auto
type
=
inst
.
picked_kernel
().
GetOutputDeclType
(
arg_name
);
if
(
!
x_out
->
AsArg
().
type
)
{
if
(
!
x_out
->
AsArg
().
type
)
{
need_correct_place
&=
false
;
need_correct_place
&=
false
;
}
else
{
}
else
{
...
...
lite/gen_code/paddle_infer.h
100755 → 100644
浏览文件 @
f826dc01
...
@@ -46,6 +46,7 @@ class Tensor {
...
@@ -46,6 +46,7 @@ class Tensor {
*/
*/
class
PaddlePredictor
{
class
PaddlePredictor
{
public:
public:
void
Init
();
std
::
unique_ptr
<
Tensor
>
GetTensor
(
const
std
::
string
&
id
)
const
;
std
::
unique_ptr
<
Tensor
>
GetTensor
(
const
std
::
string
&
id
)
const
;
std
::
unique_ptr
<
Tensor
>
GetMutableTensor
(
const
std
::
string
&
id
);
std
::
unique_ptr
<
Tensor
>
GetMutableTensor
(
const
std
::
string
&
id
);
...
...
lite/kernels/host/one_hot_compute.cc
浏览文件 @
f826dc01
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include "lite/backends/fpga/KD/debugger.hpp"
#include "lite/kernels/host/one_hot_compute.h"
#include "lite/kernels/host/one_hot_compute.h"
#include "lite/utils/paddle_enforce.h"
#include "lite/utils/paddle_enforce.h"
...
...
lite/operators/one_hot_op.cc
浏览文件 @
f826dc01
...
@@ -15,8 +15,6 @@
...
@@ -15,8 +15,6 @@
#include "lite/operators/one_hot_op.h"
#include "lite/operators/one_hot_op.h"
#include "lite/core/op_registry.h"
#include "lite/core/op_registry.h"
#include "lite/backends/fpga/KD/debugger.hpp"
namespace
paddle
{
namespace
paddle
{
namespace
lite
{
namespace
lite
{
namespace
operators
{
namespace
operators
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录