pluskid / Mocha.jl

Deep Learning framework for Julia
Other
1.29k stars 254 forks source link

examples/mnist/convert.jl needs to be updated to work on Julia 0.6 #240

Closed Chunkulator closed 6 years ago

Chunkulator commented 6 years ago

The readbytes() function used in examples/mnist/convert.jl seems to no longer be defined in Julia 0.6. Presumably it's from an earlier version of Julia.

Changing the two invocations of readbytes() to read(f, UInt8, count) fixes it: line 43: img = read(data_f, UInt8, batch_size hw) line 45: class = read(label_f, UInt8, batch_size)

greenflash1357 commented 6 years ago

This issue is handled in #238

pluskid commented 6 years ago

The fix has been incorporated in a new release now.