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

Class Frob

lib/inits.py:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 return sharedX(self.scale * q[:shape[0], :shape[1]], name=name)
38
39class Frob(object):
40
41 def __init__(self):
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

no outgoing calls

Tested by

no test coverage detected