Public Member Functions | |
def | __init__ (self, modules=None) |
def | __getitem__ (self, key) |
def | __setitem__ (self, key, module) |
def | __delitem__ (self, key) |
def | __len__ (self) |
def | __iter__ (self) |
def | __contains__ (self, key) |
def | clear (self) |
def | pop (self, key) |
def | keys (self) |
def | items (self) |
def | values (self) |
def | update (self, modules) |
Definition at line 208 of file container.py.
def torch.nn.modules.container.ModuleDict.clear | ( | self | ) |
Remove all items from the ModuleDict.
Definition at line 273 of file container.py.