Skip to content

defines

Classes

CodeGenContext dataclass

CodeGenContext(config: ConvertArgs, model: AirModel | None = None, work_path: Path = lambda: Path(tempfile.mkdtemp(prefix='helios-aot'))(), memory_plan: MemoryPlan | None = None, platform: SocPlatform | None = None, operators: list[AotOperator] = list())

Context for code generation.

Attributes:

  • config (ConvertArgs) –

    Configuration for the conversion process.

  • model (AirModel | None) –

    The AIR model being processed.

  • work_path (Path) –

    Working directory for generated files.

  • memory_plan (MemoryPlan | None) –

    Memory plan for the model.

  • platform (SocPlatform | None) –

    Target platform for code generation.

  • operators (list[AotOperator]) –

    List of operators in the model.