Returns a list of auxiliary parameters. Returns: aux_params: A namedtuple, AuxParams. aux_params.local stores a list of blobs. Each blob is a local auxiliary parameter. A local auxiliary parameter is a parameter in parallel to a learning rate
(self)
| 250 | return grad |
| 251 | |
| 252 | def get_auxiliary_parameters(self): |
| 253 | """Returns a list of auxiliary parameters. |
| 254 | |
| 255 | Returns: |
| 256 | aux_params: A namedtuple, AuxParams. |
| 257 | |
| 258 | aux_params.local stores a list of blobs. Each blob is a local |
| 259 | auxiliary parameter. A local auxiliary parameter is a parameter in |
| 260 | parallel to a learning rate parameter. Take adagrad as an example, |
| 261 | the local auxiliary parameter is the squared sum parameter, because |
| 262 | every learning rate has a squared sum associated with it. |
| 263 | |
| 264 | aux_params.shared also stores a list of blobs. Each blob is a shared |
| 265 | auxiliary parameter. A shared auxiliary parameter is a parameter |
| 266 | that is shared across all the learning rate parameters. Take adam as |
| 267 | an example, the iteration parameter is a shared parameter, because |
| 268 | all the learning rates share the same iteration parameter. |
| 269 | """ |
| 270 | return self._aux_params |
| 271 | |
| 272 | # TODO(xlwang): In transfer learning, parameter initialized from pretrained |
| 273 | # model might require a different learning rate than otherwise initialized. |
no outgoing calls