mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-01 09:07:51 +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:
@@ -23,7 +23,7 @@ def add_param(param_list, param_cp_list, *args, **kwargs):
|
||||
param_cp_list.append(param.clone())
|
||||
|
||||
|
||||
def check_euqal(param, param_cp):
|
||||
def check_equal(param, param_cp):
|
||||
if param.device != param_cp.device:
|
||||
temp = param.data.to(param_cp.device)
|
||||
else:
|
||||
@@ -57,7 +57,7 @@ def exam_chunk_basic(init_device, keep_gathered, pin_memory):
|
||||
my_chunk.append_tensor(param)
|
||||
assert my_chunk.utilized_size == 597
|
||||
for param, param_cp in zip(param_list, param_cp_list):
|
||||
check_euqal(param, param_cp)
|
||||
check_equal(param, param_cp)
|
||||
my_chunk.close_chunk()
|
||||
|
||||
if keep_gathered is False:
|
||||
@@ -77,7 +77,7 @@ def exam_chunk_basic(init_device, keep_gathered, pin_memory):
|
||||
my_chunk.access_chunk()
|
||||
assert my_chunk.device_type == 'cuda'
|
||||
for param, param_cp in zip(param_list, param_cp_list):
|
||||
check_euqal(param, param_cp)
|
||||
check_equal(param, param_cp)
|
||||
|
||||
assert my_chunk.tensor_state_cnter[TensorState.HOLD] == 4
|
||||
my_chunk.tensor_trans_state(param_list[0], TensorState.COMPUTE)
|
||||
|
Reference in New Issue
Block a user