MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / get_data

Function get_data

examples/GAN/InfoGAN-mnist.py:212–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210
211
212def get_data():
213 ds = ConcatData([dataset.Mnist('train'), dataset.Mnist('test')])
214 ds = BatchData(ds, BATCH)
215 ds = MapData(ds, lambda dp: [dp[0]]) # only use the image
216 return ds
217
218
219def sample(model_path):

Callers 1

InfoGAN-mnist.pyFile · 0.70

Calls 3

ConcatDataClass · 0.85
BatchDataClass · 0.85
MapDataClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…