Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hijkzzz committed May 12, 2019
1 parent 8f684f0 commit 7e17879
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/mnist/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
#define BETA 0.99

int main() {
//DataSet dataset("../mnist_data", true);
//dataset.forward(64, true);
//dataset.print_im();
// DataSet dataset("../mnist_data", true);
// dataset.forward(64, true);
// dataset.print_im();

cudaSetDevice(0);
auto cudaStatus = cudaSetDevice(0);
CHECK_EQ(cudaStatus, cudaSuccess,
"cudaSetDevice failed! Do you have a CUDA-capable GPU installed?");

Minist mnist("../mnist_data", LEARNING_RATE, L2, BETA);
mnist.train(EPOCHS, BATCH_SIZE);
Expand Down

0 comments on commit 7e17879

Please sign in to comment.