Seite 1 von 1

Fehlermeldung Tensorflow-Backend

Verfasst: Samstag 20. März 2021, 09:11
von lauras
Hallo zusammen,

ich habe gerade damit angefangen einen super simplen Reinforcement Learning Algorithmus zu schreiben und bekomme aber nun folgende Fehlermeldung:

Using TensorFlow backend.
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/Users/anon/.conda/envs/Simulationsumgebung_Bachelorarbeit/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])

Process finished with exit code 0

Irgendwie weiß ich nicht so richtig was diese mir sagen soll und was ich nun machen soll? Kann mir da jemand weiterhelfen?

Re: Fehlermeldung Tensorflow-Backend

Verfasst: Samstag 20. März 2021, 16:38
von __blackjack__
@lauras: Wenn das keine Warnung ist die von *Deinem* Code direkt ausgelöst wird, kannst Du da gar nichts machen. Das ist wohl eher eine Baustelle der `tensorboard`-Entwickler.

Re: Fehlermeldung Tensorflow-Backend

Verfasst: Samstag 20. März 2021, 20:59
von ThomasL
Das hört sich nach einer Inkompatibilität zwischen den installierten Modulen tensorflow und Numpy an.
Welche Versionen hast du da installiert? Du kannst das mit diesem Code feststellen.

Code: Alles auswählen

import numpy as np
import tensorflow as tf
print(np.__version__)
print(tf.__version__)