← Về thư mục
skills/get-available-resources/scripts/plan_workload.py
- _optional_number · function · L28-L29 — def _optional_number(value: Any) -> float | None
- _accelerator_decision · function · L32-L72 — def _accelerator_decision( snapshot: Mapping[str, Any], requested: str, ) -> dict[str, Any]
- build_plan · function · L75-L236 — def build_plan( snapshot: Mapping[str, Any], *, workload: str = "cpu", task_count: int | None = None, requested_workers: int | None = None, memory_per_worker_mib: int | None = None, reserve_memory_mib: int | None = None, accelerator: str = "none", ) -> dict[str, Any]
- build_parser · function · L239-L286 — def build_parser() -> argparse.ArgumentParser
- main · function · L289-L307 — def main(argv: Sequence[str] | None = None) -> int