Skip to content

Conversation

@huangjiyi
Copy link
Member

@huangjiyi huangjiyi commented Aug 29, 2024

PR Category

CINN

PR Types

Improvements

Description

Pcard-76996

Done in this PR

  1. 扩展 ShardableAxesSignature:
    • 添加 loop 成员表示循环的轴
    • ReplaceShardableAxesWithRootName 可选择进行归一化,即从新的 I0 开始编号,方便日志查看
    • 添加 SliceOp 和 TransposeOp ShardableAxesSignature 的获取
  2. 实现 FusionItersSignature 数据结构作为 PatternNode 的成员指导多下游融合
  3. 实现 SingleDownstreamItersFusion 函数用于维护单下游融合后新的 FusionItersSignature 信息
  4. 一些融合日志代码的优化

@paddle-bot
Copy link

paddle-bot bot commented Aug 29, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@2742195759 2742195759 left a comment

Choose a reason for hiding this comment

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

LGTM

fused_iters.output_values = downstream_iters.output_values;
fused_iters.output_iters = downstream_iters.output_iters;

const auto& upstream_output_value = upstream_iters.output_values[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

因为是在单下游融合,所以只会有一个输出。多下游融合才会有多个输出。这里可以写一个NOTE

Copy link
Member Author

Choose a reason for hiding this comment

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

Get

Comment on lines +79 to +80
fused_iters.output_values = downstream_iters.output_values;
fused_iters.output_iters = downstream_iters.output_iters;
Copy link
Contributor

Choose a reason for hiding this comment

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

这里假设了 ShardableAxes 的处理,已经进行了相同变量的改写。可以写一个NOTE

Copy link
Member Author

Choose a reason for hiding this comment

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

Get

@2742195759 2742195759 merged commit 1794f42 into PaddlePaddle:develop Aug 30, 2024
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