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

Method append_suffix

tools/Polygraphy/polygraphy/tools/script.py:370–378  ·  view source on GitHub ↗

Append a line to the suffix of the script Args: line (str): The line to append.

(self, line)

Source from the content-addressed store, hash-verified

368 self.preimport.append(line)
369
370 def append_suffix(self, line):
371 """
372 Append a line to the suffix of the script
373
374 Args:
375 line (str): The line to append.
376 """
377 line = ensure_safe(line).unwrap()
378 self.suffix.append(line)
379
380 def __str__(self):
381 script = "#!/usr/bin/env python3\n"

Callers 10

run_implMethod · 0.95
run_implMethod · 0.95
run_implMethod · 0.95
run_implMethod · 0.95
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
script_addMethod · 0.80

Calls 3

ensure_safeFunction · 0.85
unwrapMethod · 0.80
appendMethod · 0.45

Tested by 1

script_addMethod · 0.64