mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-05 19:13: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:
@@ -1,8 +1,11 @@
|
||||
import torch
|
||||
from torch.nn import functional as F
|
||||
|
||||
from colossalai.fx.tracer.meta_patch import patched_function
|
||||
from colossalai.testing import clear_cache_before_run
|
||||
|
||||
|
||||
@clear_cache_before_run()
|
||||
def test_conv():
|
||||
# test F.conv_1d
|
||||
data_1d = torch.rand(3, 16, 10)
|
||||
|
Reference in New Issue
Block a user