MCPcopy
hub / github.com/tdeboissiere/DeepLearningImplementations / gen_batch

Function gen_batch

InfoGAN/src/utils/data_utils.py:59–63  ·  view source on GitHub ↗
(X, batch_size)

Source from the content-addressed store, hash-verified

57
58
59def gen_batch(X, batch_size):
60
61 while True:
62 idx = np.random.choice(X.shape[0], batch_size, replace=False)
63 yield X[idx]
64
65
66def sample_noise(noise_scale, batch_size, noise_dim):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected