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

Function _read32

tensorpack/dataflow/dataset/mnist.py:26–28  ·  view source on GitHub ↗
(bytestream)

Source from the content-addressed store, hash-verified

24
25
26def _read32(bytestream):
27 dt = numpy.dtype(numpy.uint32).newbyteorder('>')
28 return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
29
30
31def extract_images(filename):

Callers 2

extract_imagesFunction · 0.85
extract_labelsFunction · 0.85

Calls 2

dtypeMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected