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

Method __init__

lib/inits.py:18–20  ·  view source on GitHub ↗
(self, loc=0., scale=0.05)

Source from the content-addressed store, hash-verified

16
17class Normal(object):
18 def __init__(self, loc=0., scale=0.05):
19 self.scale = scale
20 self.loc = loc
21
22 def __call__(self, shape, name=None):
23 return sharedX(np_rng.normal(loc=self.loc, scale=self.scale, size=shape), name=name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected