Open Skylion007 opened 2 years ago
This is an example where the mentioned rule(s) would currently be suboptimal:
if "state_dict" in cpt: cpt = cpt["state_dict"]
cpt = cpt.get("state_dict", cpt)
Is actually harder to read in this case.
Desired change
Explanation
Example
This is an example where the mentioned rule(s) would currently be suboptimal:
Is actually harder to read in this case.