We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5106caf commit 61623aeCopy full SHA for 61623ae
src/CIFAR10.jl
@@ -13,8 +13,8 @@ end
13
14
function readdata(data::Vector{UInt8})
15
n = Int(length(data)/3073)
16
- x = Array(Float64, 3072, n)
17
- y = Array(Int, n)
+ x = Matrix{Float64}(3072, n)
+ y = Vector{Int}(n)
18
for i = 1:n
19
k = (i-1) * 3073 + 1
20
y[i] = Int(data[k])
src/CIFAR100.jl
n = Int(length(data)/3074)
- y = Array(Int, 2, n)
+ y = Matrix{Int}(2, n)
k = (i-1) * 3074 + 1
y[:,i] = data[k:k+1]
0 commit comments