Skip to content

tf_gan_on_tpus.ipynb specify TensorFlow version 1.x, update kernel to python3, and correct link #26

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tensorflow_gan/examples/colab_notebooks/tfgan_on_tpus.ipynb
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@
"\n",
"### CIFAR10 Task\n",
"\n",
"In this colab we'll use TPUs to train a GAN for a more difficult task than the MNIST task tackled in the [GANEstimator](https://goto.google.com/tfgan-tutorial) colab. We'll use the [CIFAR10](https://wikipedia.org/wiki/CIFAR-10) dataset to train a model to generate images of airplanes, cars, birds, cats, deer, dogs, frogs, horses, ships, and trucks.\n",
"In this colab we'll use TPUs to train a GAN for a more difficult task than the MNIST task tackled in the [GANEstimator](https://github.com/tensorflow/gan/blob/master/tensorflow_gan/examples/colab_notebooks/tfgan_tutorial.ipynb) colab. We'll use the [CIFAR10](https://wikipedia.org/wiki/CIFAR-10) dataset to train a model to generate images of airplanes, cars, birds, cats, deer, dogs, frogs, horses, ships, and trucks.\n",
"\n",
"The training runs for 50000 steps and completes in roughly 10 minutes on TPUs.\n",
"\n",
@@ -180,6 +180,8 @@
],
"source": [
"import os\n",
"#Specify tensorflow version 1.x be used\n",
"%tensorflow_version 1.x\n",
"import tensorflow as tf\n",
"import pprint\n",
"assert 'COLAB_TPU_ADDR' in os.environ, 'Did you forget to switch to TPU?'\n",
@@ -1144,8 +1146,8 @@
]
},
"kernelspec": {
"display_name": "Python 2",
"name": "python2"
"display_name": "Python 3",
"name": "python3"
}
},
"nbformat": 4,