EXITCallback#
- class sionna.phy.fec.ldpc.EXITCallback(num_iter: int, device: str | None = None)[source]#
Bases:
sionna.phy.object.ObjectCallback for the LDPCBPDecoder to track EXIT statistics.
Can be registered as
c2v_callbacksorv2c_callbacksin theLDPCBPDecoderand theLDPC5GDecoder.This callback requires all-zero codeword simulations.
- Parameters:
- Inputs:
msg – [batch_size, num_vns, max_degree], torch.float. The v2c or c2v messages.
it – int. Current number of decoding iterations.
- Outputs:
msg – torch.float. Same as
msg.
Examples
from sionna.phy.fec.ldpc import LDPCBPDecoder from sionna.phy.fec.ldpc.utils import EXITCallback # Create callback exit_cb = EXITCallback(num_iter=20) # Create decoder with callback decoder = LDPCBPDecoder(pcm, v2c_callbacks=[exit_cb]) # After decoding, access mutual information mi = exit_cb.mi
Attributes
- property mi: torch.Tensor#
Mutual information after each iteration