TorchSig interoperability

TorchSig interoperability is an explicit conversion boundary, not an RFGen storage backend. Convert a retained LabeledScene to TorchSig at the consumer boundary, and convert TorchSig metadata back only when the source fields can be represented without guessing.

Signal Dataset is the only persisted contract; there is no HDF5 or WebDataset store to export through. rfgen.integrations.torchsig.interop exports exactly to_torchsig_signal and from_torchsig_signal, both of which take and return LabeledScene.

Shape contract

RFGen represents one receiver as (2, time) real-valued I/Q and joint receiver data as (receiver, 2, time). A TorchSig conversion must preserve sample order, sample rate, center-frequency-relative bounds, and emitter identity. Conversion must fail explicitly when the destination object has no lossless representation for a field.

See also