MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / unpickle

Function unpickle

tensorlayer/files/utils.py:558–565  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

556
557 # Helper function to unpickle the data
558 def unpickle(file):
559 fp = open(file, 'rb')
560 if sys.version_info.major == 2:
561 data = pickle.load(fp)
562 elif sys.version_info.major == 3:
563 data = pickle.load(fp, encoding='latin-1')
564 fp.close()
565 return data
566
567 filename = 'cifar-10-python.tar.gz'
568 url = 'https://www.cs.toronto.edu/~kriz/'

Callers 1

load_cifar10_datasetFunction · 0.70

Calls 2

closeMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…