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

Fix deprecation warning #30

Closed
dpo opened this issue Jun 30, 2022 · 2 comments · Fixed by #72
Closed

Fix deprecation warning #30

dpo opened this issue Jun 30, 2022 · 2 comments · Fixed by #72

Comments

@dpo
Copy link
Member

dpo commented Jun 30, 2022

┌ Warning: allowscalar([true]) is deprecated, use `allowscalar() do end` or `@allowscalar` to denote exactly which operations can use scalar operations.
│   caller = macro expansion at runtests.jl:37 [inlined]
└ @ Core ~/work/KnetNLPModels.jl/KnetNLPModels.jl/test/runtests.jl:37

https://github.com/JuliaSmoothOptimizers/KnetNLPModels.jl/runs/7139382816?check_suite_focus=true#step:6:221

@tmigot
Copy link
Member

tmigot commented Jul 12, 2023

and two more

┌ Warning: MNIST.traindata() is deprecated, use `MNIST(split=:train)[:]` instead.
└ @ MLDatasets ~/.julia/packages/MLDatasets/EXhDV/src/datasets/vision/mnist.jl:187
┌ Warning: MNIST.testdata() is deprecated, use `MNIST(split=:test)[:]` instead.
└ @ MLDatasets ~/.julia/packages/MLDatasets/EXhDV/src/datasets/vision/mnist.jl:195

https://github.com/JuliaSmoothOptimizers/KnetNLPModels.jl/actions/runs/5532932145/jobs/10095708219#step:6:458

@paraynaud
Copy link
Member

#72

@tmigot tmigot linked a pull request Jul 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants