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

Function mapper

examples/SpatialTransformer/mnist-addition.py:197–198  ·  view source on GitHub ↗
(dp)

Source from the content-addressed store, hash-verified

195 # stack the two digits into two channels, and label it with the sum
196
197 def mapper(dp):
198 return [np.stack([dp[0], dp[2]], axis=2), dp[1] + dp[3]]
199 ds = MapData(ds, dp)
200 ds = BatchData(ds, 128)
201 return ds

Callers 4

get_imagenet_tfdataFunction · 0.85
get_imagenet_tfdataFunction · 0.85
get_imagenet_tfdataFunction · 0.85
get_imagenet_tfdataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…