[Enhancement] Add type hints in mmcv/ops/focal_loss.py. (#1994)
* [Enhance] Add type hint in `focal_loss.py`.
* Use torch.LongTensor as type of target.
* Fixed the missing type hint.
* Removed some unnecessary type hint.
* Add missing type hint and fix the type hint of `target`.
* Fix the format of typehint.
* minor refinement
* minor fix
Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Showing
Please register or sign in to comment