MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / __init__

Method __init__

fastdeploy/utils.py:502–508  ·  view source on GitHub ↗
(self, *args, config_arg="--config", sep="_", **kwargs)

Source from the content-addressed store, hash-verified

500 """
501
502 def __init__(self, *args, config_arg="--config", sep="_", **kwargs):
503 super().__init__(*args, **kwargs)
504 self.sep = sep
505
506 # Create parser to prase yaml file
507 self.tmp_parser = argparse.ArgumentParser(add_help=False)
508 self.tmp_parser.add_argument(config_arg, type=str, help="Path to YAML config file")
509
510 def parse_args(self, args=None, namespace=None):
511 tmp_ns, remaining_args = self.tmp_parser.parse_known_args(args=args)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected