cderinbogaz / inpredo

Inpredo is a Deep Learning tool which looks into financial charts and predicts stock movements.
https://towardsdatascience.com/making-a-i-that-looks-into-trade-charts-62e7d51edcba
MIT License
159 stars 93 forks source link

Tensorflow. _api.v2.config issue #10

Closed AlexQT90 closed 4 years ago

AlexQT90 commented 4 years ago

Hello, thanks for your Work. I I launched in Colab according to the instructions. But it gives an error on Second Step.
AttributeError:module 'Tensorflow. _api.v2.config' has no attribute 'experimental_list_devices' Can you fix it? Or tell me what needs to be done to fix this.

Regards, Alex

interzonez commented 4 years ago

I'm having similar issues. In tensorflow_backend.py

In line 506 I changed:

_LOCAL_DEVICES = tf.config.experimental_list_devices()

to

devices = tf.config.list_logical_devices()
_LOCAL_DEVICES = [x.name for x in devices]
AlexQT90 commented 4 years ago

I'm having similar issues. In tensorflow_backend.py

In line 506 I changed:

_LOCAL_DEVICES = tf.config.experimental_list_devices()

to

devices = tf.config.list_logical_devices()
_LOCAL_DEVICES = [x.name for x in devices]

Thank you , I did as you said. It seems that the only code line was not 506. But anyway, another error comes out when starting the file train-binary.py: ValueError: Error when checking target: expected dense_2 to have shape (2,) but got array with shape (3,)

Regards,

cderinbogaz commented 4 years ago

Hello Alex,

You can completely remove these lines, since these commands only run to be able to return how many GPU devices exists on the computer. It is not a part of the code which does the AI, more used for diagnostics.