Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
torch.nn.modules.container.ModuleDict Class Reference
Inheritance diagram for torch.nn.modules.container.ModuleDict:

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)
 

Detailed Description

Definition at line 208 of file container.py.

Member Function Documentation

def torch.nn.modules.container.ModuleDict.clear (   self)
Remove all items from the ModuleDict.

Definition at line 273 of file container.py.


The documentation for this class was generated from the following file: