MCPcopy Create free account
hub / github.com/pytorch/executorch / print_ansi

Function print_ansi

scripts/file_size_compare.py:60–63  ·  view source on GitHub ↗

Print an ANSI escape code.

(ansi_code: str)

Source from the content-addressed store, hash-verified

58
59
60def print_ansi(ansi_code: str) -> None:
61 """Print an ANSI escape code."""
62 if sys.stdout.isatty():
63 print(ansi_code, end="")
64
65
66def print_size_diff(compare_file: str, base_file: str, delta: int) -> None:

Callers 2

print_size_diffFunction · 0.85
print_size_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected