Add floor module and the corresponding testcases (#4964)
* first commit of floor * Added function floor_op_tensor * fixed a copy paste bug * added test for backward_cpu * Added more test cases, added doctest * fix conflicts * changed doctest testmod, eliminated the print commands in doctest * made sure the math_op.py is the same as in the latest master branch * added an ending newline * auto format by CI * fix test_tensor python format * auto format by CI * fix license * fix docstring * fix doc test format * auto format by CI Co-authored-by:oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com> Co-authored-by:
oneflow-ci-bot <ci-bot@oneflow.org>
Showing
- docs/source/experimental.rst 2 additions, 0 deletionsdocs/source/experimental.rst
- oneflow/python/nn/modules/floor.py 88 additions, 0 deletionsoneflow/python/nn/modules/floor.py
- oneflow/python/test/modules/test_floor.py 60 additions, 0 deletionsoneflow/python/test/modules/test_floor.py
- oneflow/python/test/modules/test_math_ops.py 18 additions, 0 deletionsoneflow/python/test/modules/test_math_ops.py
- oneflow/python/test/tensor/test_tensor.py 12 additions, 0 deletionsoneflow/python/test/tensor/test_tensor.py
oneflow/python/nn/modules/floor.py
0 → 100644
oneflow/python/test/modules/test_floor.py
0 → 100644
Please register or sign in to comment