Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
26
def
_read32(bytestream):
27
dt = numpy.dtype(numpy.uint32).newbyteorder(
'>'
)
28
return
numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
29
30
31
def
extract_images(filename):
Callers
2
extract_images
Function · 0.85
extract_labels
Function · 0.85
Calls
2
dtype
Method · 0.80
read
Method · 0.80
Tested by
no test coverage detected