FluxML / MLJFlux.jl

Wrapping deep learning models from the package Flux.jl for use in the MLJ.jl toolbox
http://fluxml.ai/MLJFlux.jl/
MIT License
143 stars 17 forks source link

Update examples/MNIST #234

Closed ablaom closed 1 month ago

ablaom commented 11 months ago

Using latest pkg releases, the example will possibly fail for GPUs because of scalar indexing implicit in the make2d function (the use of a colon argument in reshape). Either use

function make2d(x)
    l = length(x)
    b = size(x)[end]
    reshape(x, div(l, b), b)
end

Or MLUtils.flatten which does the same thing.