Top "Tensorflow2.0" questions

Use this tag when asking about TensorFlow 2.0. You may consider using the [tag: tf.

Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'

When I am executing the command sess = tf.Session() in Tensorflow 2.0 environment, I am getting an error message as below: …

python tensorflow keras tensorflow2.0
How to prevent tensorflow from allocating the totality of a GPU memory?

I work in an environment in which computational resources are shared, i.e., we have a few server machines equipped …

python tensorflow tensorflow2.0 tensorflow2.x nvidia-titan
Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation

I just installed the latest version of Tensorflow via pip install tensorflow and whenever I run a program, I get …

python python-3.x tensorflow keras tensorflow2.0
RuntimeError: tf.placeholder() is not compatible with eager execution

I have upgraded with tf_upgrade_v2 TF1 code to TF2. I'm a noob with both. I got the next …

python python-3.x tensorflow tensorflow2.0
module 'tensorflow' has no attribute 'logging'

I'm trying to run a tensorflow code in v2.0 and I'mg getting the following error AttributeError: module 'tensorflow' has no …

tensorflow tensorflow2.0
The name tf.Session is deprecated. Please use tf.compat.v1.Session instead

I got the following deprecation warning in my tensorflow code: The name tf.Session is deprecated. Please use tf.compat.…

tensorflow tensorflow2.0
This model has not yet been built error on model.summary()

I've keras model defined as follow class ConvLayer(Layer) : def __init__(self, nf, ks=3, s=2, **kwargs): self.nf = nf self.…

python tensorflow keras tensorflow2.0
Why is TensorFlow 2 much slower than TensorFlow 1?

It's been cited by many users as the reason for switching to Pytorch, but I've yet to find a justification / …

python tensorflow keras performance-testing tensorflow2.0
How to use K.get_session in Tensorflow 2.0 or how to migrate it?

def __init__(self, **kwargs): self.__dict__.update(self._defaults) # set up default values self.__dict__.update(kwargs) # and update with …

machine-learning keras deep-learning real-time tensorflow2.0
Function call stack: keras_scratch_graph Error

I am reimplementing a text2speech project. I am facing a Function call stack : keras_scratch_graph error in decoder …

python tensorflow keras nlp tensorflow2.0