mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-04-28 11:45:23 +00:00
* [checkpointio] support load-pin overlap * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [test] add conftest --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
11 lines
231 B
Python
11 lines
231 B
Python
import gc
|
|
|
|
from colossalai.accelerator import get_accelerator
|
|
|
|
|
|
def pytest_runtest_setup(item):
|
|
# called for running each test in 'a' directory
|
|
accelerator = get_accelerator()
|
|
accelerator.empty_cache()
|
|
gc.collect()
|