I opened up a Jupyter notebook and tried importing tensorflow as tf and got the following error message import tensorflow as tf And here’s the message I received ImportError …

I opened up a Jupyter notebook and tried importing tensorflow as tf and got the following error message import tensorflow as tf And here’s the message I received ImportError …

I find it difficult to understand a notion about tensors. For VGG (https://www.tensorflow.org/api_docs/python/tf/keras/applications/VGG16), we start from a batch of colour images (none,224,224,3) and …

I am trying to find the accuracy of my saved Keras model using model.evaluate. I have loaded in my model using this: model = keras.models.load_model(“../input/modelpred/…

I am trying to follow this tutorial but with my data: https://www.tensorflow.org/tutorials/structured_data/feature_columns All of my data is numerical values. when I ran this part of code: model….

I have two numpy Arrays (X, Y) which I want to convert to a tensorflow dataset. According to the documentation it should be possible to run train_dataset = tf.data.Dataset.from_tensor_slices((X, Y)) …

I want to take the exp of each element in the sparse matrix. Here is a simple example: a = np.array([[1, 0, 2, 0], [3, 0, 0, 4]]) a_t = tf.constant(a) a_s = tf.sparse.from_dense(a_t) tf.exp(a_s) But …

so I imported my dataset(38 classes) for validation using ImageDataGenerator().flow_from_directory valid = ImageDataGenerator().flow_from_directory(directory=”dataset/valid”, target_size=(…

I am trying to convert xavier initializer in a tensorflow code to glorot initializer. I am not sure which one of the following (or other options) is correct? #initializer = tf.contrib.layers….

I’ve been trying to implement this ML Linear Model into my dataset. (https://www.tensorflow.org/tutorials/estimator/linear) Language: Python 3.8.3 LÄ°braries: TensorFlow 2.4.0 Numpy: 1.19.3 Pandas …

In the first chapter of Deep Learning with TensorFlow, it gives an example on how to build a simple neural network for recognizing handwritten digits. According to its description, the code bundle for …