MCPcopy Create free account
hub / github.com/ml-explore/mlx / fmt_row

Function fmt_row

benchmarks/python/segmented_mm_bench.py:88–93  ·  view source on GitHub ↗
(row)

Source from the content-addressed store, hash-verified

86 widths[i] = max(widths[i], len(cell))
87
88 def fmt_row(row):
89 return (
90 "| "
91 + " | ".join(f"{cell:<{widths[i]}}" for i, cell in enumerate(row))
92 + " |"
93 )
94
95 sep = "|-" + "-|-".join("-" * w for w in widths) + "-|"
96 print(fmt_row(headers))

Callers 1

print_tableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected