This page describes some of the experimental models that have been optimized to run on Cloud TPU. These models are not officially supported by Google at this time, but they can be useful for some kinds of research.
Getting the code
The source code for the experimental models is available on GitHub. We ofte add models to the repository, so be sure to check GitHub periodically.
Several of the models are pre-installed on the
image that you set up when following the quickstart guide.
The models are located in the following directories on the VM:
DenseNet is a variation of the ResNet image classification model where there is a full ("dense") set of skip-layer connections. See the DenseNet model optimized for Cloud TPU on GitHub. This sample is an implementation of the DenseNet image classification model.
MobileNet is an image classification model that performs well on power-limited devices such as mobile phones, leveraging depth-wise separable convolutions. See the MobileNet v1 model optimized for Cloud TPU on GitHub. This sample is an implementation of the MobileNet image classification model.
The code for the model is based on the original TensorFlow MobileNet_v1, with the following adjustments:
- TPUEstimator interface.
- Data processing pipeline for ImageNet.
SqueezeNet is an image classification model that is optimized for fewer parameters and a much smaller model size without sacrificing quality compared to contemporary image classification models (AlexNet). See the SqueezeNet model optimized for Cloud TPU on GitHub. This sample is an implementation of the SqueezeNet image classification model.
The experimental DCGAN project trains a Deep Convolutional Generative Adversarial Networks (DCGAN) model to produce generated images based on the MNIST and CIFAR-10 datasets.
The project includes simple generator and discriminator models based on the convolutional and deconvolutional models presented in Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks.
- Walk through one or more of the Cloud TPU tutorials.
- Explore the TPU tools in TensorBoard.
- If you run into problems with your model, check the troubleshooting guide.