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

Method init

test/python/test_initializer.py:49–52  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

47 def he_uniform(self, dev):
48
49 def init(shape):
50 fan_in, _ = self.compute_fan(shape)
51 limit = np.sqrt(6 / fan_in)
52 return limit
53
54 self.t1.to_device(dev)
55 initializer.he_uniform(self.t1)

Callers

nothing calls this directly

Calls 1

compute_fanMethod · 0.95

Tested by

no test coverage detected