Skip to content
Advertisement

Tag: tensorflow

Keras does not load because cannot find TensorFlow

Running Anaconda and installed: Keras = 2.4.3 TensorFlow = 2.4.0 However, when importing Keras – I get “Keras requires TensorFlow 2.2 or higher”. Tried uninstalling/installing – did not help. Any idea? Answer You can use to install an upgraded and compatible TensorFlow version in your system.

Getting the number of words from tf.Tokenizer after fitting

I initially tried making an RNN that can predict Shakespeare text, and I did it successfully using character level-encoding. But when I switched to word level encoding, I ran into a multitude of issues. Specifically, I am having a hard time getting the total number of characters (I was told it was just dataset_size = tokenizer.document_count but this just returns

How is the Tensorflow documentation created? (Especially the Jupyter notebook parts)

Here is an example page of the Tensorflow documentation: https://www.tensorflow.org/probability/examples/A_Tour_of_TensorFlow_Probability Here is the source of that page: Link How is the Jupyter notebook converted into the HTML website? I think the collapsible code blocks and the table of contents on the right look really nice. I want to do the same thing with my Jupyter notebooks (or at least get

Getting attribute error when using AUTOTUNE in Tensorflow?

I am using AUTOTUNE for audio processing. But i am getting attribute error which said “module ‘tensorflow._api.v2.data’ has no attribute ‘AUTOTUNE'”. Tensorflow version is 2.3.0. How to solve this? Answer According to the TensorFlow 2.3 documentation, AUTOTUNE lies under the tensorflow.data.experimental namespace. So using should avoid this error.

tf.train.Checkpoint is restoring or not?

I am running tensorflow 2.4 on colab. I tried to save the model using tf.train.Checkpoint() since it includes model subclassing, but after restoration I saw It didn’t restored any weights of my model. Here are few snippets: When I later restored it I didn’t get any gru weights: I also tried checkpoint.restore(manager.latest_checkpoint) but nothing changed. Is there any thing wrong

Reshaping MNIST for ResNet50

I am trying to train the mnist dataset on ResNet50 using the Keras library. The shape of mnist is (28, 28, 1) however resnet50 required the shape to be (32, 32, 3) How can I convert the mnist dataset to the required shape? Answer You need to resize the MNIST data set. Note that minimum size actually depends on the

Advertisement