MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / _read32

Function _read32

tensorflow/input_data.py:21–23  ·  view source on GitHub ↗
(bytestream)

Source from the content-addressed store, hash-verified

19 print('Succesfully downloaded', filename, statinfo.st_size, 'bytes.')
20 return filepath
21def _read32(bytestream):
22 dt = numpy.dtype(numpy.uint32).newbyteorder('>')
23 return numpy.frombuffer(bytestream.read(4), dtype=dt)
24def extract_images(filename):
25 """Extract the images into a 4D uint8 numpy array [index, y, x, depth]."""
26 print('Extracting', filename)

Callers 2

extract_imagesFunction · 0.85
extract_labelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected