MCPcopy Create free account
hub / github.com/Newmu/dcgan_code / __call__

Method __call__

lib/inits.py:44–47  ·  view source on GitHub ↗
(self, shape, name=None)

Source from the content-addressed store, hash-verified

42 pass
43
44 def __call__(self, shape, name=None):
45 r = np_rng.normal(loc=0, scale=0.01, size=shape)
46 r = r/np.sqrt(np.sum(r**2))*np.sqrt(shape[1])
47 return sharedX(r, name=name)
48
49class Constant(object):
50

Callers

nothing calls this directly

Calls 1

sharedXFunction · 0.90

Tested by

no test coverage detected