-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix Python IndexError of Case12: paddle.static.nn.bilinear_tensor_product #50008
Fix Python IndexError of Case12: paddle.static.nn.bilinear_tensor_product #50008
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为这个case加个单测吧
单测已经添加好了 |
需要看下流水线报错信息,新增单测失败,如Py3流水线
|
修改好了 |
"Input y should be 2D tensor, but received y with the shape of {}".format( | ||
y.shape | ||
) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Bug fixes
PR changes
APIs
Describe
Solution
原因:输入 的x和y的维度为1,导致
param_shape = [size, x.shape[1], y.shape[1]]
发生IndexError
错误解决方法:判断x和y的维度是否为2