MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / list_avail_args

Method list_avail_args

SwissArmyTransformer/sat/model/base_model.py:272–283  ·  view source on GitHub ↗

List all available args of the current model.

(cls, print=True)

Source from the content-addressed store, hash-verified

270
271 @classmethod
272 def list_avail_args(cls, print=True):
273 '''List all available args of the current model.'''
274 parser = argparse.ArgumentParser()
275 from sat.arguments import add_model_config_args
276 add_model_config_args(parser)
277 # add args of the current model
278 if hasattr(cls, 'add_model_specific_args'):
279 cls.add_model_specific_args(parser)
280 if print:
281 from sat.helpers import print_parser
282 print_parser(parser)
283 return parser
284
285 @classmethod
286 def get_args(cls, **kwargs):

Callers 2

test_list_avail_argsFunction · 0.80
get_argsMethod · 0.80

Calls 3

add_model_config_argsFunction · 0.90
print_parserFunction · 0.90

Tested by 1

test_list_avail_argsFunction · 0.64