Top "Tf.keras" questions

[tf.

How to fix "AttributeError: module 'tensorflow' has no attribute 'get_default_graph'"?

I am trying to run some code to create an LSTM model but i get an error: AttributeError: module 'tensorflow' …

python tensorflow keras keras-layer tf.keras
Keras that does not support TensorFlow 2.0. We recommend using `tf.keras`, or alternatively, downgrading to TensorFlow 1.14

I am having an error regarding (Keras that does not support TensorFlow 2.0. We recommend using tf.keras, or alternatively, downgrading …

python tensorflow keras neural-network tf.keras
Tensorflow==2.0.0a0 - AttributeError: module 'tensorflow' has no attribute 'global_variables_initializer'

I'm using Tensorflow==2.0.0a0 and want to run the following script: import tensorflow as tf import tensorboard import pandas as …

python tensorflow tensorflow-estimator tf.keras
Unable to train my keras model : (Data cardinality is ambiguous:)

I am using the bert-for-tf2 library to do a Multi-Class Classification problem. I created the model but training throws the …

machine-learning nlp text-classification tensorflow2.0 tf.keras
WARNING:tensorflow:sample_weight modes were coerced from ... to ['...']

Training an image classifier using .fit_generator() or .fit() and passing a dictionary to class_weight= as an argument. I …

python tensorflow keras tensorflow2.0 tf.keras
AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

I have been working on keras yolov3 model for object detection. This error keeps showing up. Here is the error: …

python tensorflow keras keras-layer tf.keras
"UserWarning: An input could not be retrieved. It could be because a worker has died. We do not have any information on the lost sample."

While training model I got this warning "UserWarning: An input could not be retrieved. It could be because a worker …

machine-learning deep-learning tf.keras
In TensorFlow 2.0 with eager-execution, how to compute the gradients of a network output wrt a specific layer?

I have a network made with InceptionNet, and for an input sample bx, I want to compute the gradients of …

python tensorflow gradient tensorflow2.0 tf.keras
What is meant by sequential model in Keras

I have recently started working Tensorflow for deep learning. I found this statement model = tf.keras.models.Sequential() bit different. …

python tensorflow keras tf.keras