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

Function get_data

examples/basics/export-model.py:76–80  ·  view source on GitHub ↗
(subset)

Source from the content-addressed store, hash-verified

74
75
76def get_data(subset):
77 ds = FakeData([[SHAPE, SHAPE, CHANNELS], [SHAPE, SHAPE, CHANNELS]], 1000, random=False,
78 dtype=['uint8', 'uint8'], domain=[(0, 255), (0, 10)])
79 ds = BatchData(ds, 1)
80 return ds
81
82
83class InferenceOnlyModel(Model):

Callers 1

export-model.pyFile · 0.70

Calls 2

FakeDataClass · 0.85
BatchDataClass · 0.85

Tested by

no test coverage detected