Skip to content
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

[pir/dy2static] support infer mode in pir dy2static. #58588

Merged
merged 4 commits into from
Nov 3, 2023

Conversation

2742195759
Copy link
Contributor

@2742195759 2742195759 commented Nov 1, 2023

PR types

Function optimization

PR changes

Others

Description

support infer mode in pir dy2static. Adding RunableProgram interface to simplify partial program layer.

PCard-66972

…ogram interface to simplify partial program layer.
@2742195759 2742195759 changed the title [pir/dy2static] support infer mode in pir dy2static. Adding RunablePr… [pir/dy2static] support infer mode in pir dy2static. Nov 1, 2023
@paddle-bot paddle-bot bot added the contributor External developers label Nov 1, 2023
return std::make_pair(cloned_program, op_result_map);
}

SplitedResult SplitForwardBackward(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SplitForwardBackward 这个函数我在使用时发现:对于相同的infer_program,如果调用之后,把fwd_program传入进来再次调用,就会出现非法的program,实现里对于 mid_value 和 output 会多次插入 SetParameterOp。我在create_output_fn_forward做了判断,但还需要仔细看下是否还存在其他类似的问题

@paddle-bot paddle-bot bot removed the contributor External developers label Nov 3, 2023
@2742195759 2742195759 merged commit 8d49781 into PaddlePaddle:develop Nov 3, 2023
28 checks passed
@2742195759 2742195759 deleted the pir-support-infer-mode branch November 3, 2023 04:49
zeroRains pushed a commit to zeroRains/Paddle that referenced this pull request Nov 8, 2023
)

* [pir/dy2static] support infer mode in pir dy2static. Adding RunableProgram interface to simplify partial program layer.

* fix
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
)

* [pir/dy2static] support infer mode in pir dy2static. Adding RunableProgram interface to simplify partial program layer.

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants