Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensorflow 1 is no longer supported in google colab #21

Open
athulkrishna2015 opened this issue May 22, 2023 · 1 comment
Open

Tensorflow 1 is no longer supported in google colab #21

athulkrishna2015 opened this issue May 22, 2023 · 1 comment

Comments

@athulkrishna2015
Copy link

ValueError Traceback (most recent call last)
in <cell line: 2>()
1 #@title ← Clone Git repository and install all requirements
----> 2 get_ipython().run_line_magic('tensorflow_version', '1.x')
3
4 get_ipython().system("pip install 'h5py<3.0.0'")
5

1 frames
/usr/local/lib/python3.10/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.

@avatarneil
Copy link

I ran into the same issue, and am lightly looking into this as time permits. Currently testing out a very naive approach of converting the Tensorflow 1 imports to Tensorflow 2 (e.g. %tensorflow_version 2.x where %tensorflow_version 1.x is specified), unsure if this will do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants