MCPcopy Create free account
hub / github.com/apache/singa / set_params

Method set_params

examples/trans/model.py:622–625  ·  view source on GitHub ↗
(self, parameters)

Source from the content-addressed store, hash-verified

620 return {self.W.name: self.W}
621
622 def set_params(self, parameters):
623 self.W.copy_from(parameters[self.W.name])
624 if self.bias:
625 self.b.copy_from(parameters[self.b.name])

Callers

nothing calls this directly

Calls 1

copy_fromMethod · 0.45

Tested by

no test coverage detected