tensorflow: Report: AutoGraph could not transform, module 'gast' has no attribute 'Index'

System information

Describe the current behavior

WARNING:tensorflow:AutoGraph could not transform 
<function train_step at 0x7f15c0790ee0> and will run it as-is.
Please report this to the TensorFlow team. When filing the bug, 
set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.
Cause: module 'gast' has no attribute 'Index'

Describe the expected behavior

Standalone code to reproduce the issue python transformer.py

Other info / logs Include any logs or source code that would be helpful to transformer.zip

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 9
  • Comments: 17 (5 by maintainers)

Most upvoted comments

In the meantime you can use pip install gast==0.3.3 with tf-nightly.

The problem will be in the future. It doesn’t matter now.

I have tried in colab with TF nightly version(2.4.0-dev20201019) and was able to reproduce the issue. However i am not seeing any issue with TF version 2.3. Please, find the gist here. Thanks!