MCPcopy
hub / github.com/huggingface/transformers / build_simple_report

Function build_simple_report

utils/create_dummy_models.py:1639–1653  ·  view source on GitHub ↗
(results)

Source from the content-addressed store, hash-verified

1637
1638
1639def build_simple_report(results):
1640 text = ""
1641 failed_text = ""
1642 for config_name in results:
1643 if "pytorch" not in results[config_name]:
1644 continue
1645 for arch_name in results[config_name]["pytorch"]:
1646 if "error" in results[config_name]["pytorch"][arch_name]:
1647 result = results[config_name]["pytorch"][arch_name]["error"]
1648 failed_text += f"{arch_name}: {result[0]}\n"
1649 else:
1650 result = ("OK",)
1651 text += f"{arch_name}: {result[0]}\n"
1652
1653 return text, failed_text
1654
1655
1656def update_tiny_model_summary_file(report_path):

Callers 1

create_tiny_modelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected