MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / fmt

Function fmt

tensorflow/python/autograph/pyct/pretty_printer.py:129–136  ·  view source on GitHub ↗
(node, color=True, noanno=False)

Source from the content-addressed store, hash-verified

127
128
129def fmt(node, color=True, noanno=False):
130 printer = PrettyPrinter(color, noanno)
131 if isinstance(node, (list, tuple)):
132 for n in node:
133 printer.visit(n)
134 else:
135 printer.visit(node)
136 return printer.result

Callers

nothing calls this directly

Calls 2

PrettyPrinterClass · 0.85
visitMethod · 0.45

Tested by

no test coverage detected