File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ def test_schema_meta_validation(model_fn):
117117
118118 problematic_weights = {}
119119 incorrect_params = []
120- bad_names = []
121120 for w in weights_enum :
122121 missing_fields = fields - set (w .meta .keys ())
123122 if missing_fields :
@@ -135,14 +134,8 @@ def test_schema_meta_validation(model_fn):
135134 if w .meta .get ("num_params" ) != weights_enum .DEFAULT .meta .get ("num_params" ):
136135 incorrect_params .append (w )
137136
138- for k , v in w .__members__ .items ():
139- # Weights are constant members, thus should be all capital
140- if isinstance (v , Weights ) and not k .isupper ():
141- bad_names .append (k )
142-
143137 assert not problematic_weights
144138 assert not incorrect_params
145- assert not bad_names
146139
147140
148141@pytest .mark .parametrize ("model_fn" , TM .get_models_from_module (models ))
You can’t perform that action at this time.
0 commit comments