mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-05 19:13:01 +00:00
[CI] fix typo with tests/ etc. (#3727)
* fix spelling error with examples/comminity/ * fix spelling error with tests/ * fix some spelling error with tests/ colossalai/ etc. * fix spelling error with tests/ etc. date:2023.5.10
This commit is contained in:
@@ -7,8 +7,8 @@ from colossalai.testing import clear_cache_before_run, parameterize
|
||||
@clear_cache_before_run()
|
||||
@parameterize('device', ['cpu', 'cuda'])
|
||||
def test_accelerator(device):
|
||||
acceleartor = Accelerator(device)
|
||||
accelerator = Accelerator(device)
|
||||
model = nn.Linear(8, 8)
|
||||
model = acceleartor.configure_model(model)
|
||||
model = accelerator.configure_model(model)
|
||||
assert next(model.parameters()).device.type == device
|
||||
del model, acceleartor
|
||||
del model, accelerator
|
||||
|
Reference in New Issue
Block a user