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

Output arg modifier return maybe part 1 #5451

Merged
merged 16 commits into from
Jul 13, 2021

Conversation

liufengwei0103
Copy link
Contributor

@liufengwei0103 liufengwei0103 commented Jul 10, 2021

Output arg modifier return maybe - part_1:

这次pr是形成 api层到 OutputArgModifer回调函数 完整的 maybe手工栈的第二部分,共两部分。
第一部分在:#5447

完整调用链为:
api层 -> f0(如CurJobBuildAndInferCtx_AddAndInferMirroredOp) -> f1(如AddAndInferMirroredOp)-> ConstructOp -> CheckAndConstructOp -> Operator->Init() -> Init() -> InitFromOpConf() -> output_arg_modify_fn

本次pr主要是从api 层 -> f0 -> f1 -> ConstructOp.
因ConstructOp会传染较多xx_task_node.cpp中的部分,xx_task_node.cpp中调用以CHECK_JUST(ConstructOp(op_conf))终止。在未来pr中再次修改。

@liufengwei0103 liufengwei0103 changed the base branch from master to OutputArgModifier_return_maybe July 10, 2021 04:46
…neflow-inc/oneflow into OutputArgModifier_return_maybe_part_1

Conflicts:
	oneflow/core/operator/operator.cpp
Base automatically changed from OutputArgModifier_return_maybe to master July 10, 2021 22:37
@liufengwei0103 liufengwei0103 force-pushed the OutputArgModifier_return_maybe_part_1 branch 2 times, most recently from a6c7220 to c9eaa68 Compare July 11, 2021 00:52
@oneflow-ci-bot oneflow-ci-bot removed their request for review July 11, 2021 06:09
const std::string& src_lbn =
src_subset_tick_op.name() + "/" + src_subset_tick_op.src_subset_tick_conf().out();
job_builder->ForEachOperator([&](const Operator& op) {
JUST(job_builder->ForEachOperator([&](const Operator& op) -> Maybe<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

ForEachOperator的参数是一个返回void的函数,而不是Maybe<void>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ForEachOperator的参数是一个返回void的函数,而不是Maybe<void>

已修改

…OutputArgModifier_return_maybe_part_1

Conflicts:
	oneflow/core/operator/operator.cpp
@liufengwei0103 liufengwei0103 force-pushed the OutputArgModifier_return_maybe_part_1 branch from 8663cac to 9f140e1 Compare July 12, 2021 03:23
@liufengwei0103 liufengwei0103 requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 13, 2021 10:25
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 13, 2021 10:45
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 13, 2021 12:01
@oneflow-ci-bot oneflow-ci-bot self-requested a review July 13, 2021 13:24
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 13, 2021 14:43
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 13, 2021 16:26
@oneflow-ci-bot oneflow-ci-bot merged commit 77f9d83 into master Jul 13, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the OutputArgModifier_return_maybe_part_1 branch July 13, 2021 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants