JAX vs PyTorch 2 - Converting Stateful to Stateless Operations in Neural Networks
Discover AI via YouTube
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to transition from PyTorch 2's stateful operations to JAX's functional programming approach in this 21-minute tutorial video. Compare implementations of neural network model definition and training using torch.nn.Module with equivalent JAX code for regression via gradient descent. Explore practical examples demonstrating how to convert stateful operations to stateless ones in JAX, with a focus on handling model parameters as state. Access complementary resources including official JAX documentation and hands-on practice through a free Google Colab notebook to reinforce learning concepts in parallel computing and AI development.
Syllabus
JAX compared to PyTorch 2: Get a feeling for JAX!
Taught by
Discover AI