MCPcopy Create free account
hub / github.com/EverMind-AI/MSA / format_num

Function format_num

src/utils/common.py:155–159  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

153
154 # --- 4. 格式化输出 ---
155 def format_num(num):
156 if num >= 1e9: return f"{num/1e9:.2f}B"
157 if num >= 1e6: return f"{num/1e6:.2f}M"
158 if num >= 1e3: return f"{num/1e3:.2f}K"
159 return str(num)
160
161 print("=" * 50)
162 print(f"Model Architecture Analysis")

Callers 1

print_model_statsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected