-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
paddle2.0和pytorch在计算mean时输出的形状不同 #29951
Comments
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~ Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day! |
目前paddle还不支持scalar tensor,后续版本可能会改进。 |
那shape为[1],有啥方法可以变为[ ] 而值不变吗?还是说现版本shape没法变为[ ] |
目前应该是不支持[] |
好的,谢谢 |
@liguoyu666 你好,请问如果支持为shape=[],会带来哪些方面的正面收益呢 |
你好,飞桨将于2.5版本全面支持0维Tensor,上述反馈的0D问题也将同时解决。(索引API需要设置 欢迎试用并安装develop 版本的paddle whl包,将体验最新的0维特性:https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/develop/install/pip/linux-pip.html Hello, Paddle will fully support the 0-dimensional Tensor in version 2.5, and the 0D issue will also be resolved at the same time. |
`import torch
a = torch.rand([8,3,128,128])
b = a.mean()
print(b.shape) # torch.Size([ ])`
`import paddle
c = paddle.rand([8,3,128,128])
d = c.mean()
print(d.shape) # [1]`
paddle输出的shape为[1],要用哪个api才能达到pytorch输出的shape [ ]
The text was updated successfully, but these errors were encountered: