-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IR] Adapt startup program #54452
[IR] Adapt startup program #54452
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
f19897b
to
1a4c920
Compare
// + consant_op for guassian | ||
EXPECT_EQ(op_size, p.Block(0).OpSize() + program->parameters_num() + 3 + 53); | ||
|
||
program->Print(std::cout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest delete cout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
program->Print(std::cout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,之后单独提PR修改。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in #54499
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Others
PR changes
Others
Description
This PR modifies the logic of translate program to adapt the
startup program
. The startup program is used to initialize the parameters of program. We need to insert a correspondingSetParameterOp
for every parameter initialized in startup program.Currently, for every parameter in
ProgramDesc
, we willGetParameterOp
if it occurs in inputs of a op first and only first timeSetParameterOp
if it occurs in outputs of a op and only last timeOthers
Pcard-67164