python - Understanding `torch.nn.Parameter()` - Stack Overflow
Communities for your favorite technologies. Explore all Collectives Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Find centralized, trusted content and collaborate around the technologies you use most. Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. Get early access and see previews of new features. How does torch.nn.Parameter() work? I will break it down for you. Tensors, as you might know, are multi dimensional matrices. Parameter, in its raw form, is a tensor i.e. a multi dimensional matrix. It sub-classes the Variable class. The difference between a Variable and a Parameter comes in when associated with a module. When a Parameter is associated with a module as a model attribute, it gets added to the parameter list automatically and can be
python - Understanding `torch.nn.Parameter()` - Stack Overflow The 2026 Annual Developer Survey is live— take the Survey today! Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives Stack Internal Knowledge at work Bring the best of human thought and AI automation together at your work. Explore Stack Internal Understanding `torch.nn.Parameter()` Ask Question Asked 8 years, 1 month ago Modified 1 year, 11 months ago Viewed 193k times 138 How does torch.nn.Parameter() work? python class pytorch S
related reading
- PyTorch internals : ezyang's blogblog.ezyang.com
- Building Models with PyTorch — PyTorch Tutorials 2.13.0+cu130 documentationpytorch.org
- Learning PyTorch with Examples — PyTorch Tutorials 2.12.0+cu130 documentationpytorch.org
- python - pytorch when do I need to use `.to(device)` on a model or tensor? - Stack Overflowstackoverflow.com
- PyTorch in One Hour: From Tensors to Training Neural Networks on Multiple GPUssebastianraschka.com
- python - How to do gradient clipping in pytorch? - Stack Overflowstackoverflow.com
- Tensors — PyTorch Tutorials 2.12.0+cu130 documentationpytorch.org
- Redirecting…pytorch.org
- python - How to convert a PyTorch sparse_coo_tensor into a PyTorch dense tensor? - Stack Overflowstackoverflow.com
- Taking PyTorch for Granted | whnrehiew.github.io
- Tensors — PyTorch Tutorials 2.13.0+cu130 documentationdocs.pytorch.org
- torch.stackdocs.pytorch.org