Modern Keras Design Patterns
summary
A practical walkthrough of building a variational autoencoder in Keras: adds a sampling layer that draws z from z_mean and z_log_var, uses the Functional API to produce two outputs, registers the KL divergence via model.add_loss, and shows using a GradientTape custom train step when subclassing. It also notes that model.fit still works and the approach scales to MirroredStrategy or TPUStrategy, with full code available in the TensorFlow/Keras links.
AI-written summary · about
chapters (8)
- 0:00Keras design patterns
- 3:06Autoencoder basics
- 4:32Variational autoencoders need
- 6:19Custom layers Functional API
- 7:47Building variational autoencoders
- 9:34Complete VAE
- 11:19Subclassing API training
- 12:22Distributed training
related talks
01h 17mDeep generative models for image...
57mTutorial on Deep Learning III
21mWhy TensorFlow eager execution matters
17mProcedural Modeling Using Autoencoder Networks
01h 22mDeep Probabilistic Methods with PyTorch
01h 37mTen Steps to Keras
09mPrimal--Dual Optimization and Application to Sampling
01h 00mTutorial on Deep Learning IV
