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

Function get_data

examples/boilerplate.py:36–42  ·  view source on GitHub ↗
(subset)

Source from the content-addressed store, hash-verified

34
35
36def get_data(subset):
37 # something that yields [[SHAPE, SHAPE, CHANNELS], [1]]
38 ds = FakeData([[SHAPE, SHAPE, CHANNELS], [1]], 1000, random=False,
39 dtype=['float32', 'uint8'], domain=[(0, 255), (0, 10)])
40 ds = MultiProcessRunnerZMQ(ds, 2)
41 ds = BatchData(ds, BATCH_SIZE)
42 return ds
43
44
45def get_config():

Callers 1

get_configFunction · 0.70

Calls 3

FakeDataClass · 0.85
BatchDataClass · 0.85

Tested by

no test coverage detected