mmcv/tests/test_runner
saurbhc 34f227efbd
[Feature] Add SegmindLoggerHook (#1650)
* add SegmindLoggerHook

* update linting for segmind.py

* ran pre-commit

* add test_segmind_hook

- add SegmindLoggerHook import in:
  mmcv/runner/__init__.py
  mmcv/runner/hooks/__init__.py
  mmcv/runner/hooks/logger/__init__.py

* update test_segmind_hook

- Add Docstring to SegmindLoggerHook
- Use get_loggable_tags(...)

* update test_hooks.py & segmind.py

- mmcv/runner/hooks/logger/segmind.py
  moved docs from __init__ to class ...
  update ImportError line-indentation
  remove unwanted method
- tests/test_runner/test_hooks.py
  update assert_called_with only on hook.segmind_mlflow_log

* Update tests/test_runner/test_hooks.py

disable yapf on test_hooks.py imports

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update mmcv/runner/hooks/logger/segmind.py

Update SegmindLoggerHook docstring

Co-authored-by: Jiazhen Wang <47851024+teamwong111@users.noreply.github.com>

* update before_run method in segmind.py

removed un-used statements

* updated imports in SegmindLoggerHook

* update SegmindLoggerHook

- code cleanup

* update SegmindLoggerHook

- add interval parameter in __init__ method

* update SegmindLoggerHook

- more arguments passes to __init__ method
  - interval
  - ignore_last
  - reset_flag
  - by_epoch

* Update mmcv/runner/hooks/logger/segmind.py

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

* Update mmcv/runner/hooks/logger/segmind.py

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Jiazhen Wang <47851024+teamwong111@users.noreply.github.com>
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
2022-03-03 10:01:46 +08:00
..
test_basemodule.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_checkpoint.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_dist_utils.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_eval_hook.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_fp16.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_hooks.py [Feature] Add SegmindLoggerHook (#1650) 2022-03-03 10:01:46 +08:00
test_optimizer.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_runner.py [Fix] Fix some warnings in unittest (#1522) 2021-12-22 10:57:10 +08:00
test_utils.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00