HeliaEdgeSource
PythonHeliaEdgeSource = Literal['release', 'vcs', 'local', 'unknown']Export results and the environment that produced them; importable without Keras.
HeliaEdgeSourceattributeTensorRecordclassOne model input or output.state_scales_tiedfunctionWhether every integer state pair has one scale and zero point.EnvironmentRecordclassVersions that can change exported bytes.ExportResultclassExported model bytes with their identity.environment_recordfunctionDescribe the running environment.unidentified_installfunctionWhy record does not identify the helia-edge code, and how to install code that does.HeliaEdgeSource = Literal['release', 'vcs', 'local', 'unknown']One model input or output.
TensorRecord( name: str, role: TensorRole, shape: tuple[int, ...], dtype: IODType, scale: float | None, zero_point: int | None, pair: int | None = None,) -> Nonedataclass
One model input or output. Dynamic dimensions are -1. I/O tensors are per-tensor quantized; float
tensors have no scale. A state tensor (role STATE) has the index pair of its state pair.
name: strrole: TensorRoleshape: tuple[int, ...]dtype: IODTypescale: float | Nonezero_point: int | Nonepair: int | None = NoneWhether every integer state pair has one scale and zero point.
state_scales_tied(inputs: Sequence[TensorRecord], outputs: Sequence[TensorRecord]) -> bool | NoneWhether every integer state pair has one scale and zero point.
Returns
| Type | Description |
|---|---|
bool | None | bool | None: None when the model has no integer state pair, as for float I/O or a stateless model. |
Raises
| Type | Description |
|---|---|
ValueError | If a state tensor has no pair index, or a state input or output has no partner. |
Versions that can change exported bytes.
EnvironmentRecord( helia_edge: str, helia_edge_commit: str | None, python: str, platform: str, packages: tuple[tuple[str, str | None], ...], helia_edge_source: HeliaEdgeSource = 'unknown',) -> Nonedataclass
Versions that can change exported bytes.
helia_edge is "unknown" when the imported package is not the installed distribution (for
example a source tree on PYTHONPATH). helia_edge_commit is set only for a distribution
installed from a VCS URL. helia_edge_source says how the version identifies the code: release
(installed from a package index), vcs (installed from a VCS URL at helia_edge_commit),
local (installed from a directory or an archive, or a source tree with egg-info metadata, which
the version does not identify) or unknown.
helia_edge: strhelia_edge_commit: str | Nonepython: strplatform: strpackages: tuple[tuple[str, str | None], ...]helia_edge_source: HeliaEdgeSource = 'unknown'True when the recorded version or commit identifies the code that ran.
identified: boolTrue when the recorded version or commit identifies the code that ran.
Exported model bytes with their identity.
ExportResult( spec: ExportSpec, content: bytes, sha256: str, inputs: tuple[TensorRecord, ...], outputs: tuple[TensorRecord, ...], environment: EnvironmentRecord,) -> Nonedataclass
Exported model bytes with their identity.
spec: ExportSpeccontent: bytessha256: strinputs: tuple[TensorRecord, ...]outputs: tuple[TensorRecord, ...]environment: EnvironmentRecordDescribe the running environment.
environment_record() -> EnvironmentRecordDescribe the running environment.
Why record does not identify the helia-edge code, and how to install code that does.
unidentified_install(record: EnvironmentRecord) -> strWhy record does not identify the helia-edge code, and how to install code that does.