Fix Entity > could not be transformed and will be executed as-is

By | August 3, 2021

When we are training our tensorflow model, we may get this warning:

Fix Entity bound method Conv.call of tensorflow.python.layers.convolutional.Conv2D object could not be transformed and will be executed as-is

Entity <bound method Conv.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x2b0e0f512898>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team.

In this tutorial, we will introduce how to fix it.

How to fix this error?

We can uninstall gast and install 0.2.2 version

pip uninstall gast
pip install gast==0.2.2

Then, you will find this error is fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *