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

add autotest for some math ops #5646

Merged
merged 11 commits into from
Jul 30, 2021

Conversation

mosout
Copy link
Contributor

@mosout mosout commented Jul 28, 2021

  • oneflow.experimental.sqrt
  • oneflow.experimental.Tensor.sqrt
  • oneflow.experimental.square
  • oneflow.experimental.Tensor.square
  • oneflow.experimental.std [skip]
  • oneflow.experimental.Tensor.std [skip]
  • oneflow.experimental.pow
  • oneflow.experimental.Tensor.pow
  • oneflow.experimental.cosh
  • oneflow.experimental.Tensor.cosh
  • oneflow.experimental.acos
  • oneflow.experimental.Tensor.acos

m.to(device)
x = random_pytorch_tensor().to(device)
y = m(x)
return y


def numpy_sigmoid(x):
Copy link
Contributor

Choose a reason for hiding this comment

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

sigmoid这种特别简单的测试样例可以删除了,保留自动测试的就好。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的

@mosout mosout force-pushed the add_autotest_new branch from 7d0c3a0 to 8b11f84 Compare July 30, 2021 03:31
@oneflow-ci-bot oneflow-ci-bot self-requested a review July 30, 2021 05:23
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 30, 2021 06:54
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 30, 2021 09:04
@oneflow-ci-bot oneflow-ci-bot self-requested a review July 30, 2021 10:11
@oneflow-ci-bot oneflow-ci-bot merged commit f76c167 into Oneflow-Inc:master Jul 30, 2021
@mosout mosout deleted the add_autotest_new branch December 14, 2021 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants