Add negative and nllloss module (#4789)
* add negative and nllloss module
* add negative and nllloss module
* add negative and nllloss module
* add negative and nllloss module
* add nllloss impleted, relay on other module, do not merge now
* fix nllloss bug
* support 2d nllloss bug
* fix comment
* add flow.neg api
* support bert nllloss
* fix nllloss 2d bug
* add docs
* fix comment
* fix comment
* fix comment
Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Showing
- oneflow/python/framework/tensor.py 1 addition, 1 deletiononeflow/python/framework/tensor.py
- oneflow/python/nn/modules/loss.py 130 additions, 0 deletionsoneflow/python/nn/modules/loss.py
- oneflow/python/nn/modules/negative.py 57 additions, 0 deletionsoneflow/python/nn/modules/negative.py
- oneflow/python/test/modules/test_negative.py 61 additions, 0 deletionsoneflow/python/test/modules/test_negative.py
- oneflow/python/test/modules/test_nllloss.py 159 additions, 0 deletionsoneflow/python/test/modules/test_nllloss.py
oneflow/python/nn/modules/negative.py
0 → 100644
oneflow/python/test/modules/test_negative.py
0 → 100644
oneflow/python/test/modules/test_nllloss.py
0 → 100644
Please register or sign in to comment