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
- Redirecting…pytorch.org
- Building Models with PyTorch — PyTorch Tutorials 2.13.0+cu130 documentationpytorch.org
- PyTorch internals : ezyang's blogblog.ezyang.com
- Chapter 0: Fundamentals - ARENAlearn.arena.education
- Learning PyTorch with Examples — PyTorch Tutorials 2.12.0+cu130 documentationpytorch.org
- microgptkarpathy.github.io
- PyTorch in One Hour: From Tensors to Training Neural Networks on Multiple GPUssebastianraschka.com
- Interpreting Language Model Parametersgoodfire.ai
- PyTorch (@PyTorch) / Xx.com
- the bug that taught me more about PyTorch than years of using it | Elana Simonelanapearl.github.io
- Stochastic Parameter Decompositionarxiv.org
- Tensors — PyTorch Tutorials 2.12.0+cu130 documentationpytorch.org