kaira.modulations.IdentityModulator

Inheritance diagram for IdentityModulator
- class kaira.modulations.IdentityModulator(*args, **kwargs)[source]
Bases:
BaseModulatorIdentity modulator that passes input data through unchanged.
This modulator implements the BaseModulator interface but doesn’t perform any actual modulation. It’s useful as a no-op placeholder in pipelines or for testing.
- constellation
Trivial constellation points [0, 1]
- Type:
Methods
Initialize the identity modulator.
Modulate bits to symbols as required by BaseModulator.
Pass input bits through unchanged.
Plot the constellation diagram.
Reset any stateful components.
Attributes
Number of bits per symbol.
- __init__(*args, **kwargs)[source]
Initialize the identity modulator.
- Parameters:
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- forward(x: Tensor, *args, **kwargs) Tensor[source]
Modulate bits to symbols as required by BaseModulator.
- Parameters:
x – Input tensor of bits with shape (…, N)
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- Returns:
The same tensor, unchanged, with shape (…, N)
- modulate(bits: Tensor) Tensor[source]
Pass input bits through unchanged.
- Parameters:
bits – Input tensor of bits with any shape
- Returns:
The same tensor, unchanged