Skip to content

Commit

Permalink
Merge pull request #98 from rahulunair/patch-1
Browse files Browse the repository at this point in the history
(fix): remove depreciated function call
  • Loading branch information
chriselrod authored Aug 11, 2022
2 parents 287adee + 83c4c56 commit 8482290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mnist_lenet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import MLDatasets
function get_data()
xtrain, ytrain = MLDatasets.MNIST.traindata(Float32)
xtest, ytest = MLDatasets.MNIST.testdata(Float32)
xtrain, ytrain = MLDatasets.MNIST(:train)[:]
xtest, ytest = MLDatasets.MNIST(:test)[:]

(
(reshape(xtrain, 28, 28, 1, :), UInt32.(ytrain .+ 1)),
Expand Down

0 comments on commit 8482290

Please sign in to comment.