We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4921d94 commit 5effa36Copy full SHA for 5effa36
test/test_prototype_models.py
@@ -117,6 +117,7 @@ def test_schema_meta_validation(model_fn):
117
118
problematic_weights = {}
119
incorrect_params = []
120
+ bad_names = []
121
for w in weights_enum:
122
missing_fields = fields - set(w.meta.keys())
123
if missing_fields:
@@ -133,9 +134,12 @@ def test_schema_meta_validation(model_fn):
133
134
else:
135
if w.meta.get("num_params") != weights_enum.DEFAULT.meta.get("num_params"):
136
incorrect_params.append(w)
137
+ if not w.name.isupper():
138
+ bad_names.append(w)
139
140
assert not problematic_weights
141
assert not incorrect_params
142
+ assert not bad_names
143
144
145
@pytest.mark.parametrize("model_fn", TM.get_models_from_module(models))
0 commit comments