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

Method __call__

demo/HuggingFace/NNDF/interface.py:101–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 self._parser = argparse.ArgumentParser(description=description, conflict_handler="resolve")
100
101 def __call__(self):
102 self.add_args(self._parser)
103 self.config.MetadataClass.add_args(self._parser)
104 self._args = self._parser.parse_args()
105
106 if self._args.verbose:
107 G_LOGGER.setLevel(level=G_LOGGER.DEBUG)
108 elif self._args.info:
109 G_LOGGER.setLevel(level=G_LOGGER.INFO)
110
111 self.metadata = self.args_to_network_metadata(self._args)
112 self.check_network_metadata_is_supported(self.metadata)
113
114 @abstractmethod
115 def run_benchmark(self):

Callers

nothing calls this directly

Calls 4

add_argsMethod · 0.95
parse_argsMethod · 0.45

Tested by

no test coverage detected