Concept

Bulk Parameter Access in PyTorch

In PyTorch, all parameters across an entire nested network can be accessed simultaneously using the named_parameters() method. This function returns an iterator that yields tuples containing the name of each parameter and the parameter object itself, making it easy to inspect shapes or apply operations across all layers at once.

0

1

Updated 2026-05-08

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L