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

Function load

examples/singa_peft/examples/data/cifar10.py:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 return train_x, val_x
84
85def load(): # Need to pass in the path for loading training data
86 train_x, train_y = load_train_data()
87 val_x, val_y = load_test_data()
88 train_x, val_x = normalize(train_x, val_x)
89 train_y = train_y.flatten()
90 val_y = val_y.flatten()
91 return train_x, train_y, val_x, val_y

Callers

nothing calls this directly

Calls 3

load_train_dataFunction · 0.70
load_test_dataFunction · 0.70
normalizeFunction · 0.70

Tested by

no test coverage detected