T
PythonT = TypeVar('T')Typed containers for tensor payloads; record metadata stays with the caller.
TconstantTensorPayloadclassTwo-level tensor-only schema accepted by portable preprocessing layers.SampleclassLive tensor facade, not a serializable model config or an immutable tensor.T = TypeVar('T')Two-level tensor-only schema accepted by portable preprocessing layers.
TensorPayload()Live tensor facade, not a serializable model config or an immutable tensor.
Sample(signals: dict[str, T], targets: dict[str, T] = dict(), masks: dict[str, T] = dict()) -> Nonedataclass
Live tensor facade, not a serializable model config or an immutable tensor.
Conversion creates new dictionaries but never copies tensor storage. Keys in
each group name tensor leaves. Keep record IDs and other metadata outside this
object, and pass sample.tensor_tree() to a Keras layer.
signals: dict[str, T]targets: dict[str, T] = field(default_factory=dict)masks: dict[str, T] = field(default_factory=dict)Return fresh containers referencing the original tensor leaves.
tensor_tree() -> TensorPayload[T]Return fresh containers referencing the original tensor leaves.