Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
9189a6b4
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
9189a6b4
编写于
6月 04, 2023
作者:
Y
Yuanle Liu
提交者:
GitHub
6月 04, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[IR] adjust some API name (#54331)
* adjust some API name * fix inference.a undefined reference to utf8proc
上级
755a280e
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
9 addition
and
9 deletion
+9
-9
paddle/fluid/dialect/pd_dialect.cc
paddle/fluid/dialect/pd_dialect.cc
+1
-1
paddle/fluid/inference/CMakeLists.txt
paddle/fluid/inference/CMakeLists.txt
+1
-1
paddle/ir/core/ir_printer.cc
paddle/ir/core/ir_printer.cc
+2
-2
paddle/ir/core/program.h
paddle/ir/core/program.h
+1
-1
paddle/ir/core/type.cc
paddle/ir/core/type.cc
+1
-1
paddle/ir/core/type.h
paddle/ir/core/type.h
+1
-1
test/cpp/ir/core/ir_program_test.cc
test/cpp/ir/core/ir_program_test.cc
+1
-1
test/cpp/ir/core/program_translator_test.cc
test/cpp/ir/core/program_translator_test.cc
+1
-1
未找到文件。
paddle/fluid/dialect/pd_dialect.cc
浏览文件 @
9189a6b4
...
@@ -116,7 +116,7 @@ void PaddleDialect::PrintType(ir::Type type, std::ostream &os) {
...
@@ -116,7 +116,7 @@ void PaddleDialect::PrintType(ir::Type type, std::ostream &os) {
os
<<
d
;
os
<<
d
;
os
<<
"x"
;
os
<<
"x"
;
}
}
tensor_type
.
dtype
().
p
rint
(
os
);
tensor_type
.
dtype
().
P
rint
(
os
);
os
<<
">"
;
os
<<
">"
;
}
}
...
...
paddle/fluid/inference/CMakeLists.txt
浏览文件 @
9189a6b4
...
@@ -33,7 +33,7 @@ endif()
...
@@ -33,7 +33,7 @@ endif()
# fluid_modules exclude API-interface of inference/api and inference/capi_exp
# fluid_modules exclude API-interface of inference/api and inference/capi_exp
get_property
(
fluid_modules GLOBAL PROPERTY FLUID_MODULES
)
get_property
(
fluid_modules GLOBAL PROPERTY FLUID_MODULES
)
get_property
(
phi_modules GLOBAL PROPERTY PHI_MODULES
)
get_property
(
phi_modules GLOBAL PROPERTY PHI_MODULES
)
set
(
utils_modules pretty_log string_helper benchmark
)
set
(
utils_modules pretty_log string_helper benchmark
utf8proc
)
add_subdirectory
(
api
)
add_subdirectory
(
api
)
...
...
paddle/ir/core/ir_printer.cc
浏览文件 @
9189a6b4
...
@@ -233,7 +233,7 @@ class IRPrinter : public BasicIRPrinter {
...
@@ -233,7 +233,7 @@ class IRPrinter : public BasicIRPrinter {
std
::
unordered_map
<
const
void
*
,
std
::
string
>
aliases_
;
std
::
unordered_map
<
const
void
*
,
std
::
string
>
aliases_
;
};
};
void
Program
::
p
rint
(
std
::
ostream
&
os
)
{
void
Program
::
P
rint
(
std
::
ostream
&
os
)
{
IRPrinter
printer
(
os
);
IRPrinter
printer
(
os
);
printer
.
PrintProgram
(
this
);
printer
.
PrintProgram
(
this
);
}
}
...
@@ -243,7 +243,7 @@ void Operation::Print(std::ostream& os) {
...
@@ -243,7 +243,7 @@ void Operation::Print(std::ostream& os) {
printer
.
PrintOperation
(
this
);
printer
.
PrintOperation
(
this
);
}
}
void
Type
::
p
rint
(
std
::
ostream
&
os
)
const
{
void
Type
::
P
rint
(
std
::
ostream
&
os
)
const
{
BasicIRPrinter
printer
(
os
);
BasicIRPrinter
printer
(
os
);
printer
.
PrintType
(
*
this
);
printer
.
PrintType
(
*
this
);
}
}
...
...
paddle/ir/core/program.h
浏览文件 @
9189a6b4
...
@@ -50,7 +50,7 @@ class Program {
...
@@ -50,7 +50,7 @@ class Program {
ModuleOp
module_op
()
{
return
module_
;
}
ModuleOp
module_op
()
{
return
module_
;
}
void
p
rint
(
std
::
ostream
&
os
);
void
P
rint
(
std
::
ostream
&
os
);
Block
*
block
()
{
return
module_
.
block
();
}
Block
*
block
()
{
return
module_
.
block
();
}
...
...
paddle/ir/core/type.cc
浏览文件 @
9189a6b4
...
@@ -19,7 +19,7 @@ namespace ir {
...
@@ -19,7 +19,7 @@ namespace ir {
IrContext
*
Type
::
ir_context
()
const
{
return
dialect
().
ir_context
();
}
IrContext
*
Type
::
ir_context
()
const
{
return
dialect
().
ir_context
();
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
Type
type
)
{
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
Type
type
)
{
type
.
p
rint
(
os
);
type
.
P
rint
(
os
);
return
os
;
return
os
;
}
}
...
...
paddle/ir/core/type.h
浏览文件 @
9189a6b4
...
@@ -78,7 +78,7 @@ class Type {
...
@@ -78,7 +78,7 @@ class Type {
return
ir
::
dyn_cast
<
U
>
(
*
this
);
return
ir
::
dyn_cast
<
U
>
(
*
this
);
}
}
void
p
rint
(
std
::
ostream
&
os
)
const
;
void
P
rint
(
std
::
ostream
&
os
)
const
;
///
///
/// \brief Enable hashing Type.
/// \brief Enable hashing Type.
...
...
test/cpp/ir/core/ir_program_test.cc
浏览文件 @
9189a6b4
...
@@ -231,7 +231,7 @@ TEST(program_test, program) {
...
@@ -231,7 +231,7 @@ TEST(program_test, program) {
EXPECT_EQ
(
program
.
block
()
->
size
()
==
4
,
true
);
EXPECT_EQ
(
program
.
block
()
->
size
()
==
4
,
true
);
EXPECT_EQ
(
program
.
parameters_num
()
==
3
,
true
);
EXPECT_EQ
(
program
.
parameters_num
()
==
3
,
true
);
program
.
p
rint
(
std
::
cout
);
program
.
P
rint
(
std
::
cout
);
}
}
TEST
(
program_test
,
slice_combine_test
)
{
TEST
(
program_test
,
slice_combine_test
)
{
...
...
test/cpp/ir/core/program_translator_test.cc
浏览文件 @
9189a6b4
...
@@ -59,5 +59,5 @@ TEST(PaddleDialectTest, Translator) {
...
@@ -59,5 +59,5 @@ TEST(PaddleDialectTest, Translator) {
// ops.size() = op size in BlockDesc + get_parameter_op + combine op
// ops.size() = op size in BlockDesc + get_parameter_op + combine op
EXPECT_EQ
(
op_size
,
p
.
Block
(
0
).
OpSize
()
+
program
->
parameters_num
()
+
21
);
EXPECT_EQ
(
op_size
,
p
.
Block
(
0
).
OpSize
()
+
program
->
parameters_num
()
+
21
);
std
::
cout
<<
*
program
<<
std
::
endl
;
program
->
Print
(
std
::
cout
)
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录