Problems with importing Tensoflow in Jupyter. DLL load failed. Specific module failed to load

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 …

shape of an output tensor after convolutional filter on a colour image

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 …

Keras model.evaluate accuracy stuck at 50 percent while using ImageDataGenerator

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/…

why am I getting warning/error when working with tensorflow (use functional API and not implemented error)

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….

Tensorflow dataset from numpy array

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)) …

Exponential of SparseTensor with mapping

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 …

extracting images and their label one by one from ImageDataGenerator().flow_from_directory

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

converting xavier to glorot in tensorflow code

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….

TypeError: Expected binary or unicode string, got 618.0

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 …

Why is the result of the code offered by Deep Learning with TensorFlow different from the snapshot in its book

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 …