При попытке использовать библиотеку tenorflow я получил вывод ошибки атрибута
Версия TF:
Name: tensorflow
Version: 2.0.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: packages@tensorflow.org
License: Apache 2.0
Location: c:\users\vinhalivinhali\appdata\local\programs\python\python35\lib\site-packages
Requires: tensorboard, wrapt, keras-preprocessing, protobuf, wheel, numpy, gast, tensorflow-estimator, termcolor, google-pasta, grpcio, absl-py, keras-applications, astor, opt-einsum, six
Required-by:
Версия Python
Python 3.5.0
ИМПОРТ
import tensorflow as tf # for Deep Learning
import pandas as pd # for data manipulation
import numpy as np # for matrix manipulation
from matplotlib import pyplot as plt # for graphics
СКРИПТ
X0 = X[:, 0, :] # get the data in the first time period
Ht = tf.elu(tf.matmul(X0, Wx_h) + b) # uses X0 to initiate the hidden state
y = [] # list to be populated with outputs every time period
ВЫХОД
Traceback (most recent call last):
File "rnrs.py", line 40, in <module>
Ht = tf.elu(tf.matmul(X0, Wx_h) + b) # uses X0 to initiate the hidden state
AttributeError: module 'tensorflow' has no attribute 'elu'