mmpretrain/mmcls
HumberMe 1214df083d
[Enhance] Use PyTorch official `one_hot` to implement `convert_to_one_hot`. (#696)
* some change to mmcls/models/losses/utils.py:convert_to_one_hot()

* fixed problem: line too long

* fixed wrong output shape

* fixed lint PEP8 E128

* fix lint

* fix lint

* add unit tests

Co-authored-by: Ezra-Yu <1105212286@qq.com>
2022-02-28 10:20:31 +08:00
..
apis [Enhance] Upgrade isort pre-commit hooks. (#687) 2022-02-17 02:17:20 +08:00
core [CI] Add Windows CI. (#708) 2022-02-28 10:06:08 +08:00
datasets [Enhance] Upgrade isort pre-commit hooks. (#687) 2022-02-17 02:17:20 +08:00
models [Enhance] Use PyTorch official `one_hot` to implement `convert_to_one_hot`. (#696) 2022-02-28 10:20:31 +08:00
utils [Enhance] Add setup multi-processing both in train and test. (#671) 2022-01-27 10:18:36 +08:00
__init__.py Bump version to v0.20.1 (#685) 2022-02-07 11:46:50 +08:00
version.py Bump version to v0.20.1 (#685) 2022-02-07 11:46:50 +08:00