Coverage for / home / jenkins / .local / lib / python3.10 / site-packages / hyper_parallel / codegen / spec / __init__.py: 100%
3 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-10-25 05:45 +0800
« prev ^ index » next coverage.py v7.13.1, created at 2026-10-25 05:45 +0800
1# Copyright 2026 Huawei Technologies Co., Ltd
2# Licensed under the Apache License, Version 2.0
3# ============================================================================
4"""Codegen spec — the stable projection of a training YAML into codegen inputs.
6``project_codegen_spec`` (spec.project) turns a resolved ``TrainerConfig`` into
7a ``CodegenSpec``; the spec is what the signature hashes over and what the
8plan/emit layers consume. The spec must only carry fields that actually affect
9the generated modeling artifact, so that unrelated YAML fields cannot force a
10regeneration.
11"""
12from hyper_parallel.codegen.spec.project import project_codegen_spec
13from hyper_parallel.codegen.spec.types import (
14 CodegenSpec,
15 ParallelDimsSpec,
16 SourceSpec,
17 TargetSpec,
18 TransformSpec,
19)
21__all__ = [
22 "CodegenSpec",
23 "ParallelDimsSpec",
24 "SourceSpec",
25 "TargetSpec",
26 "TransformSpec",
27 "project_codegen_spec",
28]