ConversionResult
PythonWhat a finished conversion wrote, as AotConverter.convert() returns it.
ConversionResult( output: Path, prefix: str, plan: OptimizationPlan, report: OptimizationReport, work_dir: Path | None, operators: tuple[OperatorView, ...] | None = None, tensors: tuple[TensorView, ...] | None = None, regions: tuple[RegionView, ...] | None = None, placements: Mapping[str, PlacementView] | None = None,) -> Nonedataclass
What a finished conversion wrote, as AotConverter.convert() returns it.
A result compares and hashes by identity, so it can key a dict or join a
set. To compare two conversions, compare their plan and report,
which compare by value.
output
Pythonoutput: PathThe module directory, module.path joined with
module.name, or the .zip or .pack archive that
module.path names.
prefix
Pythonprefix: strThe module.prefix the module’s C symbols and file names
start with.
plan
Pythonplan: OptimizationPlanThe optimization plan, which the module holds as
<prefix>_plan.json.
report
Pythonreport: OptimizationReportThe optimization report, which the module holds as
<prefix>_report.json.
work_dir
Pythonwork_dir: Path | NoneThe temporary work directory, which holds the generated
sources under module.name, when keep_work_dir kept it;
otherwise None, as the conversion removed it.
operators
Pythonoperators: tuple[OperatorView, ...] | None = NoneWith result_views, the generated operators in
execution order, which is the order the generated operator
callback reports them in; otherwise None.
tensors
Pythontensors: tuple[TensorView, ...] | None = NoneWith result_views, the module’s tensors in the order of
its tensor enumeration; otherwise None.
regions
Pythonregions: tuple[RegionView, ...] | None = NoneWith result_views, the module’s arena regions, where
regions[i].id == i; otherwise None.
placements
Pythonplacements: Mapping[str, PlacementView] | None = NoneWith result_views, each tensor’s placement, keyed by
tensor id; otherwise None.