MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / parse

Method parse

tools/Polygraphy/polygraphy/tools/base/tool.py:145–154  ·  view source on GitHub ↗

Run argument parsing for all argument groups. Args: args (Namespace): The namespace returned by ``parse_args()`` or ``parse_known_args()``.

(self, args)

Source from the content-addressed store, hash-verified

143 subtool.setup_parser(subparsers)
144
145 def parse(self, args):
146 """
147 Run argument parsing for all argument groups.
148
149 Args:
150 args (Namespace):
151 The namespace returned by ``parse_args()`` or ``parse_known_args()``.
152 """
153 for arg_group in self.arg_groups.values():
154 arg_group.parse(args)
155
156 # Implementation for `run`. This should be implemented by child classes instead of `run`
157 def run_impl(self, args):

Callers 6

mainMethod · 0.95
parse_argsMethod · 0.45
mainFunction · 0.45
call_implMethod · 0.45
call_implMethod · 0.45
parse_argsMethod · 0.45

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected