-
Notifications
You must be signed in to change notification settings - Fork 661
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
Restruct MathOps AutoTest #5654
Conversation
Co-authored-by: oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
bias=random() | nothing(), | ||
padding_mode=constant("zeros") | nothing(), | ||
) | ||
m = torch.nn.Conv2d(in_channels=channels, out_channels=random(1, 129), kernel_size=random(1, 4), |
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.
out channels这里要不要设置小点,跑起来快点?
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.
好的
return z | ||
|
||
@autotest() | ||
def test_atanh_tensor_with_random_data(test_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.
和833行测试重复了,删除下
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.
好的
Speed stats:
|
把所有的三角函数替换为新版自动测试框架,删除之前的手动测试。
所有三角函数的单独测试文件均删除,移动到math_ops的测试文件中。
另外修复了自动测试框架制定Tensor的数值范围失效的BUG,新增了避免死循环的循环次数检查。
新增了一些其它自动测试例子,Conv2d,Floor等等。