add inplace method: Tensor.sin_ (#5471)
* refine * refine * refine * add inplace testcase * check inplace valid Co-authored-by:Yinggang Wang <wyg19970408@gmail.com> * refine * refine inplace name * reformat * auto format by CI Co-authored-by:
Yinggang Wang <wyg19970408@gmail.com> Co-authored-by:
oneflow-ci-bot <ci-bot@oneflow.org> Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Showing
- oneflow/core/functional/functional_api.yaml 1 addition, 1 deletiononeflow/core/functional/functional_api.yaml
- oneflow/core/functional/impl/unary_functor.cpp 47 additions, 3 deletionsoneflow/core/functional/impl/unary_functor.cpp
- oneflow/core/functional/impl/unary_functor.h 20 additions, 0 deletionsoneflow/core/functional/impl/unary_functor.h
- oneflow/python/nn/modules/math_ops.py 18 additions, 4 deletionsoneflow/python/nn/modules/math_ops.py
- oneflow/python/test/modules/test_math_ops.py 21 additions, 0 deletionsoneflow/python/test/modules/test_math_ops.py
Please register or sign in to comment