"git@developer.sourcefind.cn:one/TransferBench.git" did not exist on "437b6e702fda37aa8d1e230601c85e989f858a8c"
[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