guen_gn:

tf.config.get_visible_devices()


I reinstalled everything inckuding ubuntu otherwise older nvidia apps does not seem to be compeltely removed. It works now! thx
±----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       970      G   /usr/lib/xorg/Xorg                100MiB |
|    0   N/A  N/A      1163      G   /usr/bin/gnome-shell               48MiB |
|    0   N/A  N/A      1430      G   …setup/gnome-initial-setup        2MiB |
|    0   N/A  N/A      4370      C   python3                          6941MiB |
1563/1563 [==============================] - 5s 3ms/step - loss: 0.7987 - accuracy: