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

[Zero-Dim] support input 0D Tensor as scalar attribute for some api #47689

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

zhwesky2010
Copy link
Contributor

@zhwesky2010 zhwesky2010 commented Nov 4, 2022

PR types

New features

PR changes

APIs

Describe

0D Tensor作为标量属性,例如API的shape、start、end时,包含:

paddle.slice
paddle.strided_slice
paddle.linspace
paddle.arange
paddle.normal
paddle.rand
paddle.randn
paddle.randint
paddle.randint_like
paddle.standard_normal
paddle.uniform
paddle.empty
paddle.empty_like
paddle.full
paddle.full_like
paddle.ones
paddle.ones_like
paddle.zeros
paddle.zeros_like

@paddle-bot
Copy link

paddle-bot bot commented Nov 4, 2022

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

@zhwesky2010 zhwesky2010 force-pushed the 0d_attribute branch 5 times, most recently from 39b779a to bd94c5c Compare November 9, 2022 05:31
jeff41404
jeff41404 previously approved these changes Nov 11, 2022
Copy link
Contributor

@jeff41404 jeff41404 left a comment

Choose a reason for hiding this comment

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

LGTM

python/paddle/tensor/creation.py Outdated Show resolved Hide resolved
python/paddle/tensor/creation.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Ligoml Ligoml left a comment

Choose a reason for hiding this comment

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

LGTM for docs

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM for PADDLE_ENFORCE

@zhwesky2010 zhwesky2010 merged commit e0be4b9 into PaddlePaddle:develop Nov 14, 2022
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.

None yet

4 participants