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

Class Uniform

lib/inits.py:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8from rng import np_rng
9
10class Uniform(object):
11 def __init__(self, scale=0.05):
12 self.scale = 0.05
13
14 def __call__(self, shape, name=None):
15 return sharedX(np_rng.uniform(low=-self.scale, high=self.scale, size=shape), name=name)
16
17class Normal(object):
18 def __init__(self, loc=0., scale=0.05):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected