Skip to content
heliaPROFILER
Reference
HELIA

run_inputs

What a run is built for and captured under: the typed fixture that pins a model’s input bytes and declares its outputs, the tensors’ element types and quantization, how the run is timed, the prepared runtime a build links, the board guard a capture answers to, the model analysis that lists a model’s inputs and outputs, and the targets and IO types this heliaPROFILER builds.

Every name on this page is imported from helia_profiler.

API tier: experimental

Generated from the src/helia_profiler tree f38e378c801d34438affb680257217e0b58d2cd1.

Machine-readable model

  • FixtureDTypeclassIO tensor element types a fixture can declare.
  • FixtureFileclassA file pinned by its SHA-256; :meth:read refuses bytes that no longer match.
  • FixtureTimingScopeclassWhat the timed span covers.
  • analyze_run_modelfunctionRead a LiteRT model's public inputs and outputs without selecting an engine.
  • FixtureStatePolicyclassInternal state behavior; input restoration is independent of this policy.
  • FixtureRoleclassRole of one fixture tensor; outputs are always SIGNAL.
  • PerTensorQuantizationclassAPI tier: experimental
  • FixtureMethodclassSelect input-restoration timing and, optionally, the internal-state policy.
  • PerAxisQuantizationclassAPI tier: experimental
  • analyze_run_model_for_enginefunctionRead a model's public inputs and outputs as engine's fixture integration admits them.
  • FixtureTensorclassOne named model input or output with its dtype, shape and quantization.
  • FixtureIOclassOne model input with its fixed bytes, or one output with its expected bytes.
  • FixtureOutputclassOne complete output declaration, without a reference answer.
  • TypedFixtureModelAnalysisclassA model's public inputs and outputs in model order, with its graph facts.
  • TypedFixtureclassFixed input bytes and complete ordered outputs for a model.
class

IO tensor element types a fixture can declare.

src/helia_profiler/fixtures/io.py:15

FixtureDType()

IO tensor element types a fixture can declare.

API tier: experimental

class

What the timed span covers.

src/helia_profiler/fixtures/types.py:24

FixtureTimingScope()

What the timed span covers.

INVOKE_ONLY brackets each invocation; RESTORE_AND_INVOKE brackets the timed loop, so restoring the fixed inputs before each invocation is inside the span.

API tier: experimental

function

Read a LiteRT model's public inputs and outputs without selecting an engine.

src/helia_profiler/runs/inputs.py:34

analyze_run_model(path: str | Path) -> TypedFixtureModelAnalysis

Read a LiteRT model’s public inputs and outputs without selecting an engine.

API tier: experimental

Parameters of analyze_run_model
NameTypeDefaultDescription
pathstr | PathRequiredThe ``.tflite`` model.
Returns of analyze_run_model
TypeDescription
TypedFixtureModelAnalysisThe input and output tensors in model order, with their dtype, shape
TypedFixtureModelAnalysisand quantization, and the model's graph facts.
Errors raised by analyze_run_model
TypeDescription
ConfigErrorThe model is unreadable, or a run cannot pin inputs for it, for example because an input or output shape is dynamic.
class

Select input-restoration timing and, optionally, the internal-state policy.

src/helia_profiler/fixtures/types.py:49

FixtureMethod(
timing_scope: FixtureTimingScope,
state_policy: FixtureStatePolicy | None = None,
power_sync: FixturePowerSync | None = None,
) -> None

dataclass

Select input-restoration timing and, optionally, the internal-state policy.

Carry initializes the engine once, then retains internal state through warmups and measurements. It is how fixtures always run, so a build of a model with internal state records it when no policy is given. Fixed external inputs are still restored each invocation; no internal reset or source-initializer equivalence is implied.

API tier: experimental

function

Read a model's public inputs and outputs as engine's fixture integration admits them.

src/helia_profiler/runs/inputs.py:56

analyze_run_model_for_engine(path: str | Path, engine: EngineType | str) -> TypedFixtureModelAnalysis

Read a model’s public inputs and outputs as engine’s fixture integration admits them.

API tier: experimental

Parameters of analyze_run_model_for_engine
NameTypeDefaultDescription
pathstr | PathRequiredThe ``.tflite`` model.
engineEngineType | strRequiredThe engine the run builds with.
Returns of analyze_run_model_for_engine
TypeDescription
TypedFixtureModelAnalysisThe same analysis as :func:`analyze_run_model`, after the engine has
TypedFixtureModelAnalysisadmitted the model.
Errors raised by analyze_run_model_for_engine
TypeDescription
ConfigError*engine* is not an engine name, the model is unreadable, or the engine does not admit the model.
class

One named model input or output with its dtype, shape and quantization.

src/helia_profiler/fixtures/analysis.py:57

FixtureTensor(
name: str,
index: int,
dtype: str,
shape: tuple[int, ...],
quantization: PerTensorQuantization | PerAxisQuantization | None,
) -> None

dataclass

One named model input or output with its dtype, shape and quantization.

API tier: experimental

class

FixtureIO

Python

One model input with its fixed bytes, or one output with its expected bytes.

src/helia_profiler/fixtures/types.py:115

FixtureIO(tensor: FixtureTensor, data: FixtureFile, role: FixtureRole = FixtureRole.SIGNAL) -> None

dataclass

One model input with its fixed bytes, or one output with its expected bytes.

API tier: experimental

class

A model's public inputs and outputs in model order, with its graph facts.

src/helia_profiler/fixtures/analysis.py:124

TypedFixtureModelAnalysis(
inputs: tuple[FixtureTensor, ...],
outputs: tuple[FixtureTensor, ...],
has_float16: bool,
analysis: ModelAnalysis,
resolver: ResolverPlan,
has_internal_state: bool = False,
has_initializer: bool = False,
subgraph_count: int = 1,
resource_variable_count: int = 0,
) -> None

dataclass

A model’s public inputs and outputs in model order, with its graph facts.

API tier: experimental

class

Fixed input bytes and complete ordered outputs for a model.

src/helia_profiler/fixtures/types.py:131

TypedFixture(
model: FixtureFile,
inputs: tuple[FixtureIO, ...],
outputs: tuple[FixtureIO, ...] | tuple[FixtureOutput, ...],
) -> None

dataclass

Fixed input bytes and complete ordered outputs for a model.

Outputs are descriptors, or legacy FixtureIO references. Reference bytes are not needed for measurement; legacy identities remain unchanged.

API tier: experimental


Machine-readable: run_inputs.json · run_inputs.md, complete and lossless.