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

Method get_params

python/singa/layer.py:1370–1383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1368 return hout, cout
1369
1370 def get_params(self):
1371 ret = {}
1372 for w in [
1373 self.Wx_i, self.Wx_f, self.Wx_o, self.Wx_g, self.Wh_i,
1374 self.Wh_f, self.Wh_o, self.Wh_g
1375 ]:
1376 ret[w.name] = w
1377
1378 for b in [
1379 self.Bx_i, self.Bx_f, self.Bx_o, self.Bx_g, self.Bh_i,
1380 self.Bh_f, self.Bh_o, self.Bh_g
1381 ]:
1382 ret[b.name] = b
1383 return ret
1384
1385 def set_params(self, parameters):
1386 for w in [

Calls

no outgoing calls