Skip to content

Commit 218d2ab

Browse files
Fix typo in error message for version validation (pytorch#9250)
1 parent 1752fe6 commit 218d2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/models/mnasnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _load_from_state_dict(
173173
) -> None:
174174
version = local_metadata.get("version", None)
175175
if version not in [1, 2]:
176-
raise ValueError(f"version shluld be set to 1 or 2 instead of {version}")
176+
raise ValueError(f"version should be set to 1 or 2 instead of {version}")
177177

178178
if version == 1 and not self.alpha == 1.0:
179179
# In the initial version of the model (v1), stem was fixed-size.

0 commit comments

Comments
 (0)