~/talk

Modern Keras Design Patterns

Talkat Google I/O 2021 · 2021-05-18..05-20· [machine-learning]
slides:none on file

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

  1. 0:00Keras design patterns
  2. 3:06Autoencoder basics
  3. 4:32Variational autoencoders need
  4. 6:19Custom layers Functional API
  5. 7:47Building variational autoencoders
  6. 9:34Complete VAE
  7. 11:19Subclassing API training
  8. 12:22Distributed training
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.