# Tutorials

The TensorFlow tutorials are written as Jupyter notebooks and run directly in Google Colab---a hosted notebook environment that requires no setup. At the top of each tutorial, you'll see a **Run in Google Colab** button. Click the button to open the notebook and run the code yourself.

## For beginners

The best place to start is with the user-friendly Keras sequential API. Build models by plugging together building blocks. After these tutorials, read the [Keras guide](https://www.tensorflow.org/guide/keras/overview). [### Beginner quickstart](https://www.tensorflow.org/tutorials/quickstart/beginner) This "Hello, World!" notebook shows the Keras Sequential API and `model.fit`. [### Keras basics](https://www.tensorflow.org/tutorials/keras/classification) This notebook collection demonstrates basic machine learning tasks using Keras. [### Load data](https://www.tensorflow.org/tutorials/load_data/csv) These tutorials use `tf.data` to load various data formats and build input pipelines.

## For experts

The Keras functional and subclassing APIs provide a define-by-run interface for customization and advanced research. Build your model, then write the forward and backward pass. Create custom layers, activations, and training loops. [### Advanced quickstart](https://www.tensorflow.org/tutorials/quickstart/advanced) This "Hello, World!" notebook uses the Keras subclassing API and a custom training loop. [### Customization](https://www.tensorflow.org/tutorials/customization/basics) This notebook collection shows how to build custom layers and training loops in TensorFlow. [### Distributed training](https://www.tensorflow.org/tutorials/distribute/keras) Distribute your model training across multiple GPUs, multiple machines or TPUs. The Advanced section has many instructive notebooks examples, including [Neural machine translation](https://www.tensorflow.org/tutorials/text/nmt_with_attention), [Transformers](https://www.tensorflow.org/tutorials/text/transformer), and [CycleGAN](https://www.tensorflow.org/tutorials/generative/cyclegan).

## Video tutorials

Check out these videos for an introduction to machine learning with TensorFlow: [Video](https://www.youtube.com/watch?v=KNAWp2S3w94)

### [TensorFlow ML Zero to Hero](https://www.youtube.com/watch?v=KNAWp2S3w94&list=PLQY2H8rRoyvwWuPiWnuTDBHe7I0fMSsfO)

[Video](https://www.youtube.com/watch?v=bemDFpNooA8)

### [Basic Computer Vision with ML](https://www.youtube.com/watch?v=bemDFpNooA8&list=PLQY2H8rRoyvwWuPiWnuTDBHe7I0fMSsfO)

## Libraries and extensions

Explore [libraries](https://www.tensorflow.org/resources/libraries-extensions) to build advanced models or methods using TensorFlow, and access domain-specific application packages that extend TensorFlow. This is a *sample* of the tutorials available for these projects.
- [](http://www.tensorflow.org/tensorboard) [### TensorBoard](https://www.tensorflow.org/tensorboard)
  - [Get started with TensorBoard](https://www.tensorflow.org/tensorboard/get_started)
  - [Logging training metrics in Keras](https://www.tensorflow.org/tensorboard/scalars_and_keras)
- [](http://www.tensorflow.org/hub) [### TensorFlow Hub](https://www.tensorflow.org/hub)
  - [Object detection](https://www.tensorflow.org/hub/tutorials/tf2_object_detection)
  - [Arbitrary style transfer](https://www.tensorflow.org/hub/tutorials/tf2_arbitrary_image_stylization)
- [](http://www.tensorflow.org/model_optimization) [### Model Optimization](https://www.tensorflow.org/model_optimization)
  - [Magnitude-based weight pruning with Keras](https://www.tensorflow.org/model_optimization/guide/pruning/pruning_with_keras)
  - [Post-training quantization](https://www.tensorflow.org/lite/performance/post_training_quantization)
- [](http://www.tensorflow.org/federated) [### TensorFlow Federated](https://www.tensorflow.org/federated)
  - [Federated learning for image classification](https://www.tensorflow.org/federated/tutorials/federated_learning_for_image_classification)
  - [Federated learning for text generation](https://www.tensorflow.org/federated/tutorials/federated_learning_for_text_generation)
- [](http://www.tensorflow.org/neural_structured_learning) [### Neural Structured Learning](https://www.tensorflow.org/neural_structured_learning)
  - [Natural graph regularization for document classification](https://www.tensorflow.org/neural_structured_learning/tutorials/graph_keras_mlp_cora)
  - [Synthetic graph regularization for sentiment classification](https://www.tensorflow.org/neural_structured_learning/tutorials/graph_keras_lstm_imdb)
- [](http://www.tensorflow.org/graphics) [### TensorFlow Graphics](https://www.tensorflow.org/graphics)
  - [Object pose alignment](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/notebooks/6dof_alignment.ipynb)
  - [Mesh segmentation](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/notebooks/mesh_segmentation_demo.ipynb)
- [](https://www.tensorflow.org/addons) [### SIG Addons](https://www.tensorflow.org/addons)
  - [Image operations in TensorFlow Addons](https://www.tensorflow.org/addons/tutorials/image_ops)
  - [Normalization layers in TensorFlow Addons.](https://www.tensorflow.org/addons/tutorials/layers_normalizations)
- [](http://www.tensorflow.org/tfx) [### TFX](https://www.tensorflow.org/tfx)
  - [TFX developer tutorial](https://www.tensorflow.org/tfx/tutorials/tfx/airflow_workshop)
  - [Serve a model with TensorFlow Serving](https://www.tensorflow.org/tfx/tutorials/serving/rest_simple)
- [](http://www.tensorflow.org/datasets) [### Datasets](https://www.tensorflow.org/datasets)
  - [Using TensorFlow Datasets](https://www.tensorflow.org/datasets/overview)
- [](http://www.tensorflow.org/probability) [### Probability](https://www.tensorflow.org/probability)
  - [TensorFlow distributions introduction](https://www.tensorflow.org/probability/examples/TensorFlow_Distributions_Tutorial)
  - [Probabilistic regression](https://www.tensorflow.org/probability/examples/Probabilistic_Layers_Regression)
- [](http://www.tensorflow.org/xla) [### XLA](https://www.tensorflow.org/xla)
  - [Classifying CIFAR-10 with XLA](https://www.tensorflow.org/xla/tutorials/autoclustering_xla)
  - [Use XLA with tf.function](https://www.tensorflow.org/xla/tutorials/jit_compile)
- [](https://github.com/tensorflow/agents) [### Decision Forests](https://github.com/tensorflow/decision-forests)
  - [Train a decision forest model](https://www.tensorflow.org/decision_forests/tutorials/beginner_colab)
  - [Use text and NN features with decision forests](https://www.tensorflow.org/decision_forests/tutorials/intermediate_colab)
- [](https://github.com/tensorflow/agents) [### TensorFlow Agents](https://github.com/tensorflow/agents)
  - [Train a deep-Q network with TF Agents](https://www.tensorflow.org/agents/tutorials/1_dqn_tutorial)
  - [Reinforcement learning environments](https://www.tensorflow.org/agents/tutorials/2_environments_tutorial)
- [](https://github.com/tensorflow/ranking) [### TensorFlow Ranking](https://github.com/tensorflow/ranking)
  - [TF-Ranking Keras user guide](https://github.com/tensorflow/ranking/tree/master/tensorflow_ranking/examples/keras)
  - [TF Ranking for sparse features](https://github.com/tensorflow/ranking/blob/master/tensorflow_ranking/examples/handling_sparse_features.ipynb)
- [](https://magenta.tensorflow.org) [### Magenta](https://magenta.tensorflow.org)
  - [Generating Piano music with Transformer](https://magenta.tensorflow.org/piano-transformer)
  - [GANSynth](https://colab.research.google.com/notebooks/magenta/gansynth/gansynth_demo.ipynb)

## TensorFlow updates

Subscribe to the [TensorFlow blog](https://blog.tensorflow.org), [YouTube channel](https://www.youtube.com/tensorflow), and [Twitter](https://twitter.com/tensorflow) for the latest updates.