Align module params with torch (#4865)
* align mean module * allow negative dim param * support tuple of negative dim param * refine * format Co-authored-by:Xiaoyu Zhang <35585791+BBuf@users.noreply.github.com> Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Showing
- oneflow/python/nn/modules/math_ops.py 25 additions, 6 deletionsoneflow/python/nn/modules/math_ops.py
- oneflow/python/test/modules/test_math_ops.py 7 additions, 0 deletionsoneflow/python/test/modules/test_math_ops.py
- oneflow/python/test/modules/test_mean.py 6 additions, 0 deletionsoneflow/python/test/modules/test_mean.py
Please register or sign in to comment