Learn Before
Activity (Process)
Triggering Lazy Initialization
When a deep learning model uses lazy initialization, its parameters are not instantiated immediately upon creation. To force the framework to finally initialize these parameters, practitioners must pass an initial batch of data through the model, which provides the necessary input dimensions for shape inference.
0
1
Updated 2026-05-09
Tags
D2L
Dive into Deep Learning @ D2L