-
Notifications
You must be signed in to change notification settings - Fork 264
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
AttributeError: module 'sionna' has no attribute 'config' #468
Comments
Hi @MizWong, I am unable to reproduce the error with my setup, and it also works fine in Colab. It seems to be an issue with your local installation. Could you please provide more details about your system setup? |
I am also facing same issue with my setup. |
Hi @vishalgoyal316, could you please provide more details about your system setup? |
Hallo, //simulation parameters
ebno_db = 10
batch_size = 200
// and call the model
b, b_hat = model(batch_size, ebno_db)
ber = sionna.utils.metrics.compute_ber(b, b_hat)
nb_bits = np.size(b.numpy())
print("BER: {:.4} at Eb/No of {} dB and {} simulated bits".format(ber.numpy(), ebno_db, nb_bits)) I am using Anaconda as the development environment, Jupyter Notebook as the compiler, and Python 3.8 with TensorFlow 2.14 und Sionna 0.18.0 version. |
Hi @IhabAdarbeh, It seems like there might be an issue with your local Sionna installation. Here are a few things you can try to troubleshoot:
|
Hello,i also meet this issue. Same problem as in question #123 : I was attempting to run the Sionna Tutorial on "Part 3: Advanced Link-Level Simulations" when I encountered this error in the LMMSE Equalizer. The notebook was taken directly from the site. The Sionna version I am using is 0.18.0. But reinstalling the environment as in #123 didn't solve the problem. File [~\AppData\Local\Programs\Python\Python310\lib\site-packages\sionna\utils\tensors.py:242](http://localhost:8890/lab/tree/discover%20sionna/~/AppData/Local/Programs/Python/Python310/lib/site-packages/sionna/utils/tensors.py#line=241), in matrix_sqrt_inv(tensor)
216 def matrix_sqrt_inv(tensor):
217 r""" Computes the inverse square root of a Hermitian matrix.
218
219 Given a batch of Hermitian positive definite matrices
(...)
240 See :py:attr:`~sionna.Config.xla_compat`.
241 """
--> 242 if sn.config.xla_compat and not tf.executing_eagerly():
243 s, u = tf.linalg.eigh(tensor)
245 # Compute 1/sqrt of eigenvalues
AttributeError: Exception encountered when calling layer 'lmmse_equalizer_2' (type LMMSEEqualizer).
module 'sionna' has no attribute 'config'
Call arguments received by layer 'lmmse_equalizer_2' (type LMMSEEqualizer):
• inputs=['tf.Tensor(shape=(200, 1, 1, 14, 256), dtype=complex64)', 'tf.Tensor(shape=(200, 1, 1, 1, 1, 14, 256), dtype=complex64)', 'tf.Tensor(shape=(1, 1, 1, 1, 1, 14, 256), dtype=float32)', 'tf.Tensor(shape=(), dtype=float32)'] I tried the sample given in question #123 and got the same error result import sionna
import tensorflow as tf
from sionna.utils import matrix_sqrt_inv
matrix_sqrt_inv(tf.eye(5)) ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[34], line 9
7 import tensorflow as tf
8 from sionna.utils import matrix_sqrt_inv
----> 9 matrix_sqrt_inv(tf.eye(5))
File [~\AppData\Local\Programs\Python\Python310\lib\site-packages\sionna\utils\tensors.py:242](http://localhost:8890/lab/tree/discover%20sionna/~/AppData/Local/Programs/Python/Python310/lib/site-packages/sionna/utils/tensors.py#line=241), in matrix_sqrt_inv(tensor)
216 def matrix_sqrt_inv(tensor):
217 r""" Computes the inverse square root of a Hermitian matrix.
218
219 Given a batch of Hermitian positive definite matrices
(...)
240 See :py:attr:`~sionna.Config.xla_compat`.
241 """
--> 242 if sn.config.xla_compat and not tf.executing_eagerly():
243 s, u = tf.linalg.eigh(tensor)
245 # Compute 1/sqrt of eigenvalues
AttributeError: module 'sionna' has no attribute 'config' |
Could you try this again with the latest release 0.19? |
Same issue here with release 0.19.1:
|
Hello @zylinzzz, The previous messages in this thread reported the error: However you pasted: |
Hi,
When I run Simple_MIMO_Simulation, this error occurred, the sionna version is the latest released one by PIP.
The text was updated successfully, but these errors were encountered: