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

Method add_runner

tools/Polygraphy/polygraphy/tools/script.py:348–358  ·  view source on GitHub ↗

Adds a runner to the script. Args: runner_str (str): A string constructing the runner. For example, this may be generated by ``make_invocable``.

(self, runner_str)

Source from the content-addressed store, hash-verified

346 return Script.String("runners", safe=True, inline=True)
347
348 def add_runner(self, runner_str):
349 """
350 Adds a runner to the script.
351
352 Args:
353 runner_str (str):
354 A string constructing the runner.
355 For example, this may be generated by ``make_invocable``.
356 """
357 runner_str = ensure_safe(runner_str).unwrap()
358 self.runners.append(runner_str)
359
360 def append_preimport(self, line):
361 """

Callers 7

add_to_script_implMethod · 0.80
add_to_script_implMethod · 0.80
add_to_script_implMethod · 0.80
add_to_script_implMethod · 0.80
add_to_script_implMethod · 0.80
add_to_script_implMethod · 0.80
add_to_script_implMethod · 0.80

Calls 3

ensure_safeFunction · 0.85
unwrapMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected