MCPcopy
hub / github.com/microsoft/Swin-Transformer / _check_args

Function _check_args

config.py:290–293  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

288 config.merge_from_list(args.opts)
289
290 def _check_args(name):
291 if hasattr(args, name) and eval(f'args.{name}'):
292 return True
293 return False
294
295 # merge from specific arguments
296 if _check_args('batch_size'):

Callers 1

update_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected