@@ -171,26 +171,26 @@ def validate_algorithm_settings(algorithm_settings: list[api_pb2.AlgorithmSettin
171
171
# Validate weight decay
172
172
if s .name in ["w_weight_decay" , "alpha_weight_decay" ]:
173
173
if not float (s .value ) >= 0.0 :
174
- return False , "{} should be greate or equal than zero" .format (s .name )
174
+ return False , "{} should be greater than or equal to zero" .format (s .name )
175
175
176
176
# Validate w_momentum and w_grad_clip
177
177
if s .name in ["w_momentum" , "w_grad_clip" ]:
178
178
if not float (s .value ) >= 0.0 :
179
- return False , "{} should be greate or equal than zero" .format (s .name )
179
+ return False , "{} should be greater than or equal to zero" .format (s .name )
180
180
181
181
if s .name == "batch_size" :
182
182
if s .value is not "None" :
183
183
if not int (s .value ) >= 1 :
184
- return False , "batch_size should be greate or equal than one"
184
+ return False , "batch_size should be greater than or equal to one"
185
185
186
186
if s .name == "num_workers" :
187
187
if not int (s .value ) >= 0 :
188
- return False , "num_workers should be greate or equal than zero"
188
+ return False , "num_workers should be greater than or equal to zero"
189
189
190
190
# Validate "init_channels", "print_step", "num_nodes" and "stem_multiplier"
191
191
if s .name in ["init_channels" , "print_step" , "num_nodes" , "stem_multiplier" ]:
192
192
if not int (s .value ) >= 1 :
193
- return False , "{} should be greate or equal than one" .format (s .name )
193
+ return False , "{} should be greater than or equal to one" .format (s .name )
194
194
195
195
except Exception as e :
196
196
return False , "failed to validate {name}({value}): {exception}" .format (name = s .name , value = s .value ,
0 commit comments