Skip to content
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

Merged
merged 30 commits into from
Oct 19, 2021
Merged

[PaddlePaddle Hackathon] Add test of paddle.nn.CosineSimilarity #223

merged 30 commits into from
Oct 19, 2021

Conversation

gsq7474741
Copy link
Contributor

PR types
New features

PR changes
api.nn

Describe
Add test of paddle.nn.CosineSimilarity.

@CLAassistant
Copy link

CLAassistant commented Oct 8, 2021

CLA assistant check
All committers have signed the CLA.

@gsq7474741
Copy link
Contributor Author

@kolinwei

Copy link
Collaborator

@DDDivano DDDivano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以增加一下 axis为负值的Case

Copy link
Collaborator

@DDDivano DDDivano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以增加一下 axis为负值的Case

@gsq7474741
Copy link
Contributor Author

@kolinwei 感谢建议,已更新v4,请审阅

@kolinwei
Copy link
Collaborator

@kolinwei 感谢建议,已更新v4,请审阅

可以再加一些异常的case,比如axis为-1,axis比输入的纬度大等。

@gsq7474741
Copy link
Contributor Author

@kolinwei 感谢建议,已更新v4,请审阅

可以再加一些异常的case,比如axis为-1,axis比输入的纬度大等。

obj.run的data能否输入多个参数呀

@gsq7474741
Copy link
Contributor Author

@kolinwei @DDDivano 已更新v5,增加了三个异常情况

# cos_sim_func(x1_tensor, x2_tensor)
try:
cos_sim_func(x1_tensor, x2_tensor)
except ValueError:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

异常捕获的地方需要在case里面验证抛出的异常类型和错误信息。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kolinwei 已更新

@gsq7474741
Copy link
Contributor Author

已更新 @kolinwei

@gsq7474741 gsq7474741 requested a review from DDDivano October 15, 2021 07:33
@gsq7474741
Copy link
Contributor Author

已更新 @DDDivano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants