Skip to content

Commit

Permalink
Merge pull request #146 from Saransh-cpp/mnist-update
Browse files Browse the repository at this point in the history
Use the latest API of MLDatasets.MNIST
  • Loading branch information
ToucheSir authored Oct 7, 2022
2 parents e36b94a + a94257b commit 4be8e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/_posts/2021-01-21-data-loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ using Flux: onehotbatch
We load the MNIST train and test data from MLDatasets:

```julia
train_x, train_y = MNIST.traindata(Float32)
test_x, test_y = MNIST.testdata(Float32)
train_x, train_y = MNIST(:train)[:]
test_x, test_y = MNIST(:test)[:]
```
<br>

Expand Down

0 comments on commit 4be8e6c

Please sign in to comment.