Skip to content

Bug in prior shape for symbol outputs with MMSE-PIC Detector for OFDM_MIMO_Detection.ipynb #717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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