tensorflow: Report: AutoGraph could not transform, module 'gast' has no attribute 'Index'
System information
- source: https://www.tensorflow.org/tutorials/text/transformer
- OS Platform: ArchLinux 5.8.14 x86_64
- TensorFlow installed from (source or binary): binary : https://www.archlinux.org/packages/community/x86_64/tensorflow-cuda/
- TensorFlow version (use command below): 2.3.1 -2
- Python version: 3.8.6
- Bazel version (if compiling from source):
- GCC/Compiler version (if compiling from source):
- CUDA/cuDNN version: 11.1.0 -2 https://www.archlinux.org/packages/community/x86_64/cuda/
- GPU model and memory: GeForce GTX 1660 SUPER computeCapability: 7.5, 22 deviceMemorySize: 5.80GiB
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)
In the meantime you can use
pip install gast==0.3.3with 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!