CIFAR10 classification using Haiku

Haiku is a library built on top of JAX designed to provide simple, composable abstractions for machine learning research.

GitHub repo: https://github.com/deepmind/dm-haiku

Configuration

Imports

Disable GPU usage by TensorFlow:

Configuration

Data

Model

Utilities

Residual blocks

ResNet

Model initialization

Model summary

Training

Loss

Metrics

Optimizer

Train State

Train functions

Start training