cerebras.modelzoo.data.vision.classification.data.smallnorb.read_binary_matrix#

cerebras.modelzoo.data.vision.classification.data.smallnorb.read_binary_matrix(filename)[source]#

Reads and returns binary formatted matrix stored in filename. The file format is described on the dataset page: https://cs.nyu.edu/~ylclab/data/norb-v1.0-small/

struct header {

int magic; // 4 bytes int ndim; // 4 bytes, little endian int dim[3];

};