-
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
The need for zero-dimensional tensors. #42757
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! |
@iclementine is investigating on this. |
Currently, paddle has limited and inconsistent support for zero-dimensional tensors due to a previous design to fake a zero-dimensional tensor with a 1d tensor with shape For example, indexing an 1d tensor with an integer returns a 1d tensor with shape It's a known issue and we are planning on fixing it. But fixing this requires a throughout scanning of all APIs, which might requires some time. |
Right now I'm using a 1D tensor to simulate a zero-dimensional tensor which is indeed problematic, so expect the problem to be solved. Thank you for your reply |
@AndPuQing Hello, is there other API except |
@AndPuQing 你好,飞桨将于2.5版本全面支持0维Tensor,上述反馈的0D问题也将同时解决。 欢迎试用并安装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. |
需求描述 Feature Description
I am now trying add Paddle in deepxde(https://github.com/lululxvi/deepxde) as backend. For some reason, we need to distinguish between zero-dimensional tensors and 1D tensors, as follows:
替代实现 Alternatives
No response
The text was updated successfully, but these errors were encountered: