Back to walidsassi.com
A regression line learned in PyTorch, converted and running on an iPhone with Core AI

Core AI & PyTorch, Part 1: Understand Before You Integrate

Before converting a PyTorch model to Apple Core AI, understand what a model actually is. Rules and data, features and labels, the mean squared error, one step of gradient descent computed by hand, regression and classification, training and inference, plus an interactive playground.

November 14, 2026 · 22 min · Walid Sassi