mirror of https://github.com/hpcaitech/ColossalAI
[DDP] test ddp state dict uses more strict threshold (#1382)
parent
df54481473
commit
7d5d628e07
|
@ -25,7 +25,7 @@ def check_state_dict_equal(state_dict: OrderedDict, other_state_dict: OrderedDic
|
|||
else:
|
||||
temp_t2 = t2
|
||||
|
||||
assert torch.allclose(t1, temp_t2, atol=1e-3, rtol=1e-3)
|
||||
assert torch.equal(t1, temp_t2)
|
||||
|
||||
|
||||
def init_ddp(module: torch.nn.Module) -> ColoDDP:
|
||||
|
|
Loading…
Reference in New Issue