Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Tensor2Tensor Intro notebook giving errors while running cell 4 #1924

Description

@naveendangeti

Description

Tensor2Tensor Intro notebook giving errors while running cell 4

Environment information

OS: <your answer here>

$ pip freeze | grep tensor
mesh-tensorflow==0.1.21
pytensor==2.10.1
tensor2tensor==1.15.7
tensorboard==2.12.1
tensorboard-data-server==0.7.0
tensorboard-plugin-wit==1.8.1
tensorflow==2.12.0
tensorflow-addons==0.19.0
tensorflow-datasets==1.0.1
tensorflow-estimator==2.12.0
tensorflow-gan==2.1.0
tensorflow-gcs-config==2.12.0
tensorflow-hub==0.13.0
tensorflow-io-gcs-filesystem==0.32.0
tensorflow-metadata==1.13.0
tensorflow-probability==0.7.0
tensorstore==0.1.35

$ python -V
Python 3.9.16

### For bugs: reproduction and error logs

Steps to reproduce:

Run the notebook with python version 3.9

Error logs:


ValueError Traceback (most recent call last)
in <cell line: 3>()
2 import sys
3 if 'google.colab' in sys.modules: # Colab-only TensorFlow version selector
----> 4 get_ipython().run_line_magic('tensorflow_version', '1.x')
5 import tensorflow as tf
6 import matplotlib.pyplot as plt

1 frames
/usr/local/lib/python3.9/dist-packages/google/colab/_tensorflow_magics.py in _tensorflow_version(line)
33
34 if line.startswith("1"):
---> 35 raise ValueError(
36 # pylint: disable=line-too-long
37 textwrap.dedent(

ValueError: Tensorflow 1 is unsupported in Colab.

Your notebook should be updated to use Tensorflow 2.
See the guide at https://www.tensorflow.org/guide/migrate#migrate-from-tensorflow-1x-to-tensorflow-2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions