Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples/MNIST #234

Closed
ablaom opened this issue Aug 24, 2023 · 0 comments · Fixed by #254
Closed

Update examples/MNIST #234

ablaom opened this issue Aug 24, 2023 · 0 comments · Fixed by #254
Labels
documentation Improvements or additions to documentation

Comments

@ablaom
Copy link
Collaborator

ablaom commented Aug 24, 2023

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.

@ablaom ablaom added the documentation Improvements or additions to documentation label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant