From 517dc58ce01664c427a2929262e956a63db9417f Mon Sep 17 00:00:00 2001 From: Dominique Luna Date: Thu, 16 Aug 2018 18:17:43 -0400 Subject: [PATCH] properly initialize MNIST array for 1.0 --- src/data/mnist.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/mnist.jl b/src/data/mnist.jl index 3322df84..c068bc7d 100644 --- a/src/data/mnist.jl +++ b/src/data/mnist.jl @@ -49,7 +49,7 @@ function labelheader(io::IO) end function rawimage(io::IO) - img = Array{Gray}(NCOLS, NROWS) + img = Array{Gray}(undef, NCOLS, NROWS) for i in 1:NCOLS, j in 1:NROWS img[i, j] = reinterpret(Colors.N0f8, read(io, UInt8)) end