-
Notifications
You must be signed in to change notification settings - Fork 55
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
单测case覆盖2 #455
单测case覆盖2 #455
Conversation
Thanks for your contribution! |
paconvert/api_mapping.json
Outdated
@@ -4755,17 +4755,13 @@ | |||
"paddle_api": "paddle.bernoulli", | |||
"args_list": [ | |||
"input", | |||
"p", |
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.
@@ -1003,6 +1003,7 @@ def get_paddle_nodes(self, args, kwargs): | |||
else: | |||
code = "{}({})".format(paddle_api, self.kwargs_to_str(new_kwargs)) | |||
|
|||
self.api_mapping["args_list"] = ["input", "dim", "keepdim", "*", "out"] |
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.
这个如果不改的话会影响到后面的testcase。
tests/test_bernoulli.py
Outdated
result = torch.bernoulli(a, p=0.0) | ||
a = torch.ones(3, 3) | ||
out = torch.zeros(3, 3) | ||
result = torch.bernoulli(a, out=out, generator=torch.Generator()) |
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.
这个p是支持的,改的时候注意在本地运行代码测试,以实际运行为准,因为torch API文档也可能有bug
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.
已经修改
hi, @Xuxuanang
|
PR Docs
单测case覆盖
PR APIs