Under construction, coming soon!
A placeholder post while the lab gets set up.
The lab is still setting up. This post is a placeholder, and it doubles as a check that the blog renders code, math, and diagrams.
def train_step(model, batch, optimizer):
loss = model.loss(batch)
optimizer.zero_grad()
loss.backward()
optimizer.step()
return loss.item()
More soon.