NVlabs / sionna

Sionna: An Open-Source Library for Next-Generation Physical Layer Research
https://nvlabs.github.io/sionna
Other
808 stars 230 forks source link

support tensorflow-2.16? #361

Open nbecker opened 8 months ago

nbecker commented 8 months ago

It looks like tensorflow-2.16 supports python-3.12. Can sionna be updated to use tf-2.16?

SebastianCa commented 7 months ago

The current Sionna version 0.16.2 does officially not support TF 2.16 and you would need to wait until the next release of Sionna. However. please note that you could manually upgrade your TensorFlow installation and run the tests locally.

Remark: I think this thread belongs more to the Discussions section as it is not really an issue with Sionna.

SebastianCa commented 7 months ago

Just a quick update: TensorFlow 2.16 uses Keras 3 as default (see TensorFlow release notes). This causes incompatibilities with Sionna 0.16.2.

A workaround is to manually downgrade to Keras 2 via pip install tf-keras~=2.16 and set the environmental variables manually. This can be done by import os;os.environ["TF_USE_LEGACY_KERAS"]="1". Please note that TensorFlow 2.16 is officially not supported by Sionna 0.16.2 and you would need to run the tests locally.