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

Class CommandBlock

tools/Polygraphy/tests/test_examples.py:106–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106class CommandBlock:
107 def __init__(self, xfail):
108 self.xfail = xfail
109 self.content = None
110
111 def add(self, line):
112 if self.content is None:
113 self.content = line
114 else:
115 self.content += f"\n{line}"
116
117 def __str__(self):
118 return dedent(self.content)
119
120
121# Extract any ``` blocks from the README

Callers 1

Calls

no outgoing calls

Tested by 1