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] 45.Add test of nn.BeamSearchDecoder v0.1 #291

Merged
merged 11 commits into from
Nov 8, 2021
Merged

Conversation

jellyman2187
Copy link
Contributor

[PaddlePaddle Hackathon] 在 Paddle 中新增 paddle.nn.BeamSearchDecoder 的测试用例

PR types

New features

PR changes

APIs

Describe

Task: #35960

Add test of nn.BeamSearchDecoder v0.1

@CLAassistant
Copy link

CLAassistant commented Oct 29, 2021

CLA assistant check
All committers have signed the CLA.

@jellyman2187
Copy link
Contributor Author

@kolinwei

@jellyman2187 jellyman2187 changed the title Add test of nn.BeamSearchDecoder v0.1 [PaddlePaddle Hackathon] 34.Add test of nn.BeamSearchDecoder v0.1 Oct 31, 2021
# self.enable_backward = True


obj = TestBeamSearchDecoder(paddle.nn.BeamSearchDecoder)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个obj没有用?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

原先是用来调用paddle框架里的随机种子的,已修改

if ("[operator < matmul > error]" in e.args[0]) or ("[operator < matmul_v2 > error]" in e.args[0]):
pass
else:
raise Exception
Copy link
Collaborator

Choose a reason for hiding this comment

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

增加更多异常类的测试用例,start_token, end_token等都可以设置异常,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已更新!

@DDDivano DDDivano merged commit 5746736 into PaddlePaddle:develop Nov 8, 2021
@jellyman2187 jellyman2187 changed the title [PaddlePaddle Hackathon] 34.Add test of nn.BeamSearchDecoder v0.1 [PaddlePaddle Hackathon] 45.Add test of nn.BeamSearchDecoder v0.1 Nov 12, 2021
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