mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
* Fix hook * Fix * Fix docs * FIx * Fix * Fix as comment * update * Fix hook * Fix hook * Fix hook * Fix itertimerhook * Fix iter_timer_hook * Fix * Fix * fix logger hook * Fix loggerhook * update cur_dataloader * Fix docstring * Fix docstring * Fix as commet * Fix as commet * Fix as comment * rename is_last_epoch, enhance and add after_val before_val .etc * fix typo in docstring * remove resolved TODO * refactor docstring
14 lines
312 B
Python
14 lines
312 B
Python
# Copyright (c) OpenMMLab. All rights reserved.
|
|
from unittest.mock import Mock
|
|
|
|
from mmengine.hooks import SyncBuffersHook
|
|
|
|
|
|
class TestSyncBuffersHook:
|
|
|
|
def test_sync_buffers_hook(self):
|
|
Runner = Mock()
|
|
Runner.model = Mock()
|
|
Hook = SyncBuffersHook()
|
|
Hook._after_epoch(Runner)
|