MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / to_ast

Method to_ast

tensorrt_llm/tools/plugin_gen/shape_infer.py:225–229  ·  view source on GitHub ↗
(self, expr: str)

Source from the content-addressed store, hash-verified

223 return self.codegen(asts)
224
225 def to_ast(self, expr: str) -> _AST:
226 self.cur_expr = expr
227 ast = parser.parse(expr)
228 ast = ToAst()(ast)
229 return ast
230
231 def codegen(self, asts: List[_AST]) -> Tuple[List[str], Dict[str, str]]:
232 '''

Callers 1

__call__Method · 0.95

Calls 2

ToAstClass · 0.85
parseMethod · 0.45

Tested by

no test coverage detected