MCPcopy Create free account
hub / github.com/apache/singa / load

Function load

examples/cnn/data/mnist.py:84–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def load():
85 train_x, train_y, val_x, val_y = load_dataset()
86 train_x, val_x = normalize(train_x, val_x)
87 train_x = train_x.astype(np.float32)
88 val_x = val_x.astype(np.float32)
89 train_y = train_y.astype(np.int32)
90 val_y = val_y.astype(np.int32)
91 return train_x, train_y, val_x, val_y

Callers

nothing calls this directly

Calls 2

load_datasetFunction · 0.70
normalizeFunction · 0.70

Tested by

no test coverage detected