What is TensorFlow?
TensorFlow is an open-source library created by Google for numerical computing and machine learning. It does the heavy math, runs on CPU, GPU and TPU, and has tools to deploy models to servers, phones and browsers.
What is Keras?
Keras is a high-level deep learning library. It gives you simple building blocks such as layers, models, optimizers and losses so that you can create neural networks with very little code.
How Are They Connected?
For many years, Keras was bundled inside TensorFlow as tf.keras. Starting with TensorFlow 2.16, TensorFlow uses Keras 3 by default. Keras 3 is a multi-backend library, which means the same Keras code can run on top of TensorFlow, JAX or PyTorch.
| Backend | Notes |
|---|---|
| TensorFlow | Default and best for deployment tools (TFLite, TF Serving) |
| JAX | Very fast on GPUs and TPUs |
| PyTorch | Use Keras models inside the PyTorch world |
How to Import
In this course we mostly write import keras. When we need TensorFlow-specific tools, such as tf.data or tf.GradientTape, we also write import tensorflow as tf.
Check Your Versions
Keras version 3.x, TensorFlow version 2.16 or newer, Backend: tensorflow
TensorFlow or PyTorch?
Both are excellent. TensorFlow and Keras are famous for being beginner-friendly and having strong deployment tools. PyTorch is popular in research. With Keras 3, you can even switch the backend later, so what you learn here stays useful.
Conclusion
You will write most of your code with Keras and let TensorFlow work in the background. Keras 3 also gives you the freedom to choose another backend in the future.

