- class torch.nn.ModuleList(modules=None)[source]¶
Holds submodules in a list.
ModuleList can be indexed like a regular Python list, butmodules it contains are properly registered, and will be visible by all
Module
methods.- Parameters
modules (iterable, optional) – an iterable of modules to add
Example:
class MyModule(nn.Module): def __init__(self): super().__init__() self.linears = nn.ModuleList([nn.Linear(10, 10) for i in range(10)]) def forward(self, x): # ModuleList can act as an iterable, or be indexed using ints for i, l in enumerate(self.linears): x = self.linears[i // 2](x) + l(x) return x
- append(module)[source]¶
Append a given module to the end of the list.
- Parameters
module (nn.Module) – module to append
- Return type
ModuleList
- extend(modules)[source]¶
Append modules from a Python iterable to the end of the list.
- Parameters
modules (iterable) – iterable of modules to append
- Return type
Self
ModuleList — PyTorch 2.4 documentation (2024)
Top Articles
Lektion 4: Was ist ein Token? Was ist ein Coin? - Kriptomat
Sam’s Club is bringing back free samples | CNN Business
Dr Yakubu Riverview
New Year Copypasta 2023
Min Player Speed Threshold Madden 22
How to Become an Occupational Therapist (2024) • OT Potential
Sunbiz Llc Search Florida
About Us! - Boys & Girls Clubs of Southcentral Alaska
When His Eyes Opened Chapter 2694: Release Date, Spoilers & Where To Read? - OtakuKart
Violent Night Showtimes Near R/C Hanover Movies 16
5427 N Crooked Creek
Devotion Showtimes Near Gtc Gateway Cinemas
Fire Grill Lincolnton Menu
Blazing Crystal Kh3
Peg Leg Pete's Reservations
English - Þjóðleikhúsið
N3: Ninety-Nine Nights Review - IGN
Apartments For Rent Seattle Wa Craigslist
Realidades 2 Capitulo 2B Answers
Boyfriend (2018) | KDrama Recaps on Dramabeans
Kodo Yocan Blinking 5 Times
Wendy Moniz Swimsuit
Christmas Days Away
absence.io: that's us
1980 Monte Carlo For Sale Craigslist
Inbanithi Age
Activating the DigiD app outside the Netherlands | NetherlandsWorldwide
Ff14 Sit Anywhere
Rugged Gentleman Barber Shop Martinsburg Wv
Shiftselect Carolinas
Soap2Day That 70S Show
Tf2 Cosmetics Tester
11 Pm Pst
Maps Michigan Login
How to Search All of Craigslist From Any Device
Richy Rich Dispensary
Alcon National Driving Center Inc
Selling Sunset's Emma Hernan Reveals Truth Behind 'Affair With Married Man' Rumour
Saint Frances Cabrini West Bend Wi
Kourend & Kebos Diary | OSRS Toolkit
Explore online Islamic books library of DawateIslami
Racing Champions Diecast Car Values 1997
Psalm 139:5-12 (ESV)
Klay Thompson Finals Stats
Howard P. Rawlings Guaranteed Access (GA) Grant
Ucsd Sfs
Strip Clubs In Bowling Green
Myrtle Lowater Obituary 2021 - Pederson-Volker Funeral Chapel & Cremation Services
Quiktrip Gas Price Today
Quantum Break: Die Steamversion mit DirectX 11 im Technik-Test mit 15 Grafikkarten
Gunny's Burgers The Mule
Latest Posts
Article information
Author: Kerri Lueilwitz
Last Updated:
Views: 6717
Rating: 4.7 / 5 (67 voted)
Reviews: 90% of readers found this page helpful
Author information
Name: Kerri Lueilwitz
Birthday: 1992-10-31
Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599
Phone: +6111989609516
Job: Chief Farming Manager
Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating
Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.