mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-03 18:19:58 +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:
@@ -1,9 +1,11 @@
|
||||
import pytest
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
from torch.fx import GraphModule
|
||||
|
||||
from colossalai.fx.proxy import ColoProxy
|
||||
from colossalai.fx.tracer.tracer import ColoTracer
|
||||
from torch.fx import GraphModule
|
||||
import pytest
|
||||
from colossalai.testing import clear_cache_before_run
|
||||
|
||||
|
||||
class Conv1D(nn.Module):
|
||||
@@ -23,6 +25,7 @@ class Conv1D(nn.Module):
|
||||
return x
|
||||
|
||||
|
||||
@clear_cache_before_run()
|
||||
def test_coloproxy():
|
||||
|
||||
tracer = ColoTracer()
|
||||
|
Reference in New Issue
Block a user