Skip to content

I got This error by upgrading to TensorFlow 2.1: "AttributeError: 'Operation' object has no attribute '_graph'" . #36954

@mehrpad

Description

@mehrpad

My code is written under TensorFlow 2.0 and I run it on Ubuntu 18.04.04. The code is perfectly run with TensorFlow 2.0. But I need to use TensorFlow 2.1 because of some functionality of TensorFlow_addones library. I upgrade the Tensorflow within my virtual environment by the command " conda install tensorflow-gpu" and run the code. The code run for the first epoch and save the result but as soon as it starts next epoch, it stop and show this error.
If I downgrade the TensorFlow to 2.0, again the code run without any problem. Does anybody know what is the issue?

Metadata

Metadata

Labels

TF 2.1for tracking issues in 2.1 releasecomp:kerasKeras related issuesstat:awaiting responseStatus - Awaiting response from authortype:supportSupport issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions