MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / RandomZData

Class RandomZData

examples/GAN/GAN.py:195–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195class RandomZData(DataFlow):
196 def __init__(self, shape):
197 super(RandomZData, self).__init__()
198 self.shape = shape
199
200 def __iter__(self):
201 while True:
202 yield [np.random.uniform(-1, 1, size=self.shape)]

Callers 2

sampleFunction · 0.90
sampleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected