Skip to content

Conversation

@caden-davis
Copy link

@caden-davis caden-davis commented Jan 5, 2025

Description

One-Line Bugfix Summary: For the MMSE-PIC detector in the MIMOOFDMLink class, num constellation points should be used (not num bits per symbol) when creating the prior shape when the output is set to "symbol".

Currently, the prior's shape is created as prior_shape = tf.concat([tf.shape(x), [self.num_bits_per_symbol]], axis=0). Notice that the last dimension added is the number of bits per symbol.

However, the API documentation notes for the MMSEPICDetector class indicate that the prior input should follow:

"prior ([batch_size, num_tx, num_streams, num_data_symbols x num_bits_per_symbol] or [batch_size, num_tx, num_streams, num_data_symbols, num_points], tf.float) – Prior of the transmitted signals. If output equals “bit”, LLRs of the transmitted bits are expected. If output equals “symbol”, logits of the transmitted constellation points are expected."

Thus, the code should be changed to prior_shape = tf.concat([tf.shape(x), [2**self.num_bits_per_symbol]], axis=0). Now, the last dimension correctly matches num_points. For QAM, this is equal to 2**num_bits_per_symbol.

It should be noted that without this change, the OFDM_MIMO_Detection.ipynb example fails to run in Google Colab. With the correction, all plots are fully generated and match the documented tutorial.

Checklist

  • Detailed description
  • Added references to issues and discussions
    - [ ] Added / modified documentation as needed
    - [ ] Added / modified unit tests as needed
  • Passes all tests
  • Lint the code
  • Performed a self review
  • Ensure you Signed-off the commits. Required to accept contributions!
  • Co-authored with someone? Add Co-authored-by: user@domain and ensure they signed off their commits too.

Num constellation points should be used, not num bits per symbol when creating the prior shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant