Concept

Training Step in Deep Learning Models

The training_step method is a core component of a deep learning model's Module class. It accepts a batch of training data as input, computes the model's predictions, and returns the calculated loss value. This output is essential for the subsequent computation of gradients and the updating of the model's parameters.

0

1

Updated 2026-05-03

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L