-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
paddle.flatten_这个api无法使用,paddle提示没有这个api,但是官网给出了这个api,在位置的flatten_而不是flatten。 #63054
Labels
Comments
多为改为多维 |
能否提供一下复现代码以及版本、环境信息 |
对的,这个是敲错了,忽略这个图片,看别的图 |
@sealoongleft flatten_错误确定是相关的kernel有bug,我们会尽快修复 |
嗯嗯,我会继续使用paddle的,你们回复很快 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
文档链接&描述 Document Links & Description
有问题的文档链接:https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/flatten__cn.html
该文档存在的问题:paddle.flatten_这个api无法使用,paddle提示没有这个api,但是官网给出了这个api,在位置的flatten_而不是flatten。
我还测试了对于多为tensor的flatten_发现可以用tensor.flatten_,不过这个可用的tensor.flatten_只是部分可以正确使用,比如我对一个三维张量tensor.shape=(2,3,2)执行tensor.flatten_(0,1)就会出现错误的结果,而tensor.flatten_(1,2)就是正确的结果,而且在tensor.flatten_(1,2)这个代码中,如果我改为tensor.flatten_(start_axis=1,stop_axis=2)就又会报错。
一名来自inner mongolia university 的学术垃圾研究生嘿嘿
请提出你的建议/提个PR修复这个问题 Please give your suggestion/update a PR to fix it
No response
The text was updated successfully, but these errors were encountered: