Skip to content

Commit

Permalink
address mnist loading on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hughperkins committed Mar 23, 2016
1 parent b86b370 commit b32766f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/loaders/MnistLoader.cpp
Expand Up @@ -52,6 +52,7 @@ STATIC void MnistLoader::load(std::string imagesFilePath, unsigned char *images,
return;
}
string labelsFilePath = replace(imagesFilePath, "-images-idx3-ubyte", "-labels-idx1-ubyte");
labelsFilePath = replace(labelsFilePath, "-images.idx3-ubyte", "-labels.idx1-ubyte");
// cout << "labelsfilepath: " << labelsFilePath << endl;

fileStartPos = 2 * 4 + (long)startN;
Expand Down

0 comments on commit b32766f

Please sign in to comment.