-
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] 45.Add test of nn.BeamSearchDecoder v0.1 #291
Conversation
# self.enable_backward = True | ||
|
||
|
||
obj = TestBeamSearchDecoder(paddle.nn.BeamSearchDecoder) |
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.
这个obj没有用?
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.
原先是用来调用paddle框架里的随机种子的,已修改
if ("[operator < matmul > error]" in e.args[0]) or ("[operator < matmul_v2 > error]" in e.args[0]): | ||
pass | ||
else: | ||
raise Exception |
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.
增加更多异常类的测试用例,start_token, end_token等都可以设置异常,
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.
已更新!
[PaddlePaddle Hackathon] 在 Paddle 中新增 paddle.nn.BeamSearchDecoder 的测试用例
PR types
New features
PR changes
APIs
Describe