ParameterDict¶
-
class
mxnet.gluon.
ParameterDict
(prefix='', shared=None)[source]¶ A dictionary managing a set of parameters.
- Parameters
prefix (str, default
''
) – The prefix to be prepended to all Parameters’ names created by this dict.shared (ParameterDict or None) – If not
None
, when this dict’sget()
method creates a new parameter, will first try to retrieve it from “shared” dict. Usually used for sharing parameters with another Block.
Load and save parameters¶
|
Load parameters from file. |
|
Save parameters to file. |
Get a particular parameter¶
|
Retrieves a |
|
Retrieves a |
Get (name, paramter) pairs¶
Update parameters¶
|
Initializes all Parameters managed by this dictionary to be used for |
|
Set an attribute to a new value for all Parameters. |
|
Copies all Parameters in |
Set devices contexts and gradients¶
Re-assign all Parameters to other contexts. |
|
Sets all Parameters’ gradient buffer to 0. |
Attributes¶
|
Prefix of this dict. |