-
Notifications
You must be signed in to change notification settings - Fork 118
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
[PaddlePaddle Hackathon] Add test of paddle.nn.CosineSimilarity #223
Conversation
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.
可以增加一下 axis为负值的Case
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.
可以增加一下 axis为负值的Case
@kolinwei 感谢建议,已更新v4,请审阅 |
可以再加一些异常的case,比如axis为-1,axis比输入的纬度大等。 |
obj.run的data能否输入多个参数呀 |
# cos_sim_func(x1_tensor, x2_tensor) | ||
try: | ||
cos_sim_func(x1_tensor, x2_tensor) | ||
except ValueError: |
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里面验证抛出的异常类型和错误信息。
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.
@kolinwei 已更新
已更新 @kolinwei |
已更新 @DDDivano |
PR types
New features
PR changes
api.nn
Describe
Add test of paddle.nn.CosineSimilarity.