Skip to content

Conversation

@ronny1996
Copy link
Contributor

@ronny1996 ronny1996 commented Jan 10, 2023

PR types

Others

PR changes

Others

Describe

add where, atan2, median 0-Dim ut

@paddle-bot
Copy link

paddle-bot bot commented Jan 10, 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.

@ronny1996 ronny1996 force-pushed the 0dut branch 2 times, most recently from fbee988 to 90f0a80 Compare January 11, 2023 02:30
@ronny1996 ronny1996 changed the title add where, atan2, median 0d ut add where, atan2, median 0-Dim ut Jan 11, 2023
@ronny1996 ronny1996 changed the title add where, atan2, median 0-Dim ut [Zero-Dim] add where, atan2, median 0-Dim ut Jan 12, 2023
Copy link
Contributor

Choose a reason for hiding this comment

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

这个api是二元支持广播的吗?支持的话可以直接放到binary_api_list里

Copy link
Contributor Author

@ronny1996 ronny1996 Jan 12, 2023

Choose a reason for hiding this comment

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

atan和where不支持广播

Copy link
Contributor

Choose a reason for hiding this comment

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

paddle.static.append_backward(out.sum()) 然后测下前反向的值和shape吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已更新

Copy link
Contributor

Choose a reason for hiding this comment

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

同广播问题

Copy link
Contributor

Choose a reason for hiding this comment

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

这个按道理kernel内部不会单独去改变shape,如果infermeta是对的,这个还需要改不

Copy link
Contributor Author

Choose a reason for hiding this comment

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

只在两个输入都是0维时需要,前面为了计算0维,做了特殊处理

Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@ronny1996 ronny1996 merged commit 1508cae into PaddlePaddle:develop Jan 13, 2023
@ronny1996 ronny1996 deleted the 0dut branch January 13, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants