MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / gradients

Method gradients

numpy_ml/neural_nets/modules/modules.py:275–285  ·  view source on GitHub ↗

A dictionary of the module parameter gradients.

(self)

Source from the content-addressed store, hash-verified

273
274 @property
275 def gradients(self):
276 """A dictionary of the module parameter gradients."""
277 return {
278 "components": {
279 "conv_1x1": self.conv_1x1.gradients,
280 "add_skip": self.add_skip.gradients,
281 "add_residual": self.add_residual.gradients,
282 "conv_dilation": self.conv_dilation.gradients,
283 "multiply_gate": self.multiply_gate.gradients,
284 }
285 }
286
287 def forward(self, X_main, X_skip=None):
288 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected