MCPcopy Index your code
hub / github.com/MrNothing/AI-Blocks / loadFile

Function loadFile

Sources/scripts/CIFAR10_loader.py:51–64  ·  view source on GitHub ↗
(self, file, isTest=False)

Source from the content-addressed store, hash-verified

49 self.loadFile(path+"test_batch", True)
50
51def loadFile(self, file, isTest=False):
52 fo = open(file, 'rb')
53 u = pickle._Unpickler(fo)
54 u.encoding = 'latin1'
55 dict = u.load()
56 fo.close()
57 dict["training_state"] = 0
58
59 Log("Loaded: "+file)
60
61 if isTest==False:
62 self.data.append(dict)
63 else:
64 self.testData = dict
65
66def getNextBatch(self):
67 amount = self.batch_size

Callers

nothing calls this directly

Calls 2

LogFunction · 0.85
loadMethod · 0.80

Tested by

no test coverage detected