mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 03:52:01 +00:00
[test] refactor tests with spawn (#3452)
* [test] added spawn decorator * polish code * polish code * polish code * polish code * polish code * polish code
This commit is contained in:
@@ -4,6 +4,7 @@ from torch.fx import GraphModule
|
||||
from torch.utils.checkpoint import checkpoint
|
||||
|
||||
from colossalai.fx import ColoTracer
|
||||
from colossalai.testing import clear_cache_before_run
|
||||
|
||||
|
||||
class MLP(torch.nn.Module):
|
||||
@@ -35,6 +36,7 @@ class MyModule(torch.nn.Module):
|
||||
return x
|
||||
|
||||
|
||||
@clear_cache_before_run()
|
||||
def test_activation_checkpoint_annotation():
|
||||
module = MyModule()
|
||||
|
||||
|
Reference in New Issue
Block a user