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

[NewIR] No.7 Migrate paddle.softmaxinto pir #57415

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

Difers
Copy link
Contributor

@Difers Difers commented Sep 16, 2023

PR types

Others

PR changes

Others

Description

@paddle-bot paddle-bot bot added the contributor External developers label Sep 16, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Sep 18, 2023
@0x45f
Copy link
Contributor

0x45f commented Sep 18, 2023

看ci的报错,应该是新ir模式的切换导致了动静态图模式的混乱导致了单测的报错,需要在test_softmax_mkldnn_op的TestSoftmaxMKLDNNPrimitivesAlreadyExist.setUp中调用一下paddle.enable_static()

@@ -1200,7 +1200,7 @@ def softmax(x, axis=-1, dtype=None, name=None):

if (dtype is not None) and (not isinstance(dtype, core.VarDesc.VarType)):
Copy link
Contributor

Choose a reason for hiding this comment

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

这里需要加上对于新IR datatype的检查

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done~辛苦有空再review下

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

if (
(dtype is not None)
and (not isinstance(dtype, core.VarDesc.VarType))
and (not isinstance(dtype, core.DataType))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
and (not isinstance(dtype, core.DataType))
and (not isinstance(dtype, (core.DataType, core.VarDesc.VarType)))

@0x45f 0x45f merged commit 571f32c into PaddlePaddle:develop Sep 22, 2023
Frida-a pushed a commit to Frida-a/Paddle that referenced this pull request Oct 14, 2023
jiahy0825 pushed a commit to jiahy0825/Paddle that referenced this pull request Oct 16, 2023
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants