Skip to content

Conversation

0x45f
Copy link
Contributor

@0x45f 0x45f commented Sep 6, 2023

PR types

Others

PR changes

APIs

Description

[PIR]Migrate fill_constant into pir

  • full op目前不支持可变attr,但是python端是支持可变attr,所以手写了full的python c api,在python c api这一层进行了分发,有可变attr时调用full_with_tensor op
  • 总共18个fill_constant相关单测,14个单测继承自OpTest已经全部打开,4个单测继承自unittest.TestCase未打开

Pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented Sep 6, 2023

你的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.

@0x45f 0x45f changed the title [NewIR]Call _C_ops.full in new ir [PIR]Migrate fill_constant into pir Sep 14, 2023
Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurelius84 Aurelius84 merged commit 99831e0 into PaddlePaddle:develop Sep 16, 2023
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
* Call _C_ops.full in new ir

* Fix shape attr

* Fix yaml and infermeta

* Refine code

* Use full with tensor op

* Refine code

* Remove breakpoint

* Fix full

* Call stack when use full_with_tensor

* Refine code

* Refine code

* Refine code
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.

3 participants