From c91b63c2e590e129073c9fd3e5a3f1b2a4d11835 Mon Sep 17 00:00:00 2001 From: Farhad Rahbarnia <31899325+farhadrclass@users.noreply.github.com> Date: Fri, 3 Nov 2023 01:48:16 -0400 Subject: [PATCH] updating Julia to 1.9 (#26) * updating Julia to 1.9 --- .github/workflows/ci.yml | 2 +- Project.toml | 8 ++++---- docs/Project.toml | 8 ++++---- docs/src/index.md | 2 +- docs/src/tutorial.md | 2 +- example/MNIST_cnn.jl | 2 +- src/FluxNLPModels.jl | 2 +- test/runtests.jl | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d108f6d..becb12b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - version: ['1.6', '1'] + version: ['1.9', '1'] os: [ubuntu-latest, macOS-latest, windows-latest] arch: [x64] allow_failure: [false] diff --git a/Project.toml b/Project.toml index 83ea529..02498e5 100644 --- a/Project.toml +++ b/Project.toml @@ -10,11 +10,11 @@ NLPModels = "a4795742-8479-5a88-8948-cc11e1c8c1a6" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [compat] -Flux = "0.13.16" +Flux = "0.14.6" MLDatasets = "0.7.9" NLPModels = "0.20.0" -Zygote = "0.6.49" -julia = "^1.6.0" +Zygote = "0.6.60" +julia = "^1.9.0" [extras] CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" @@ -22,4 +22,4 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["LinearAlgebra","CUDA" ,"Test"] +test = ["LinearAlgebra", "CUDA", "Test"] \ No newline at end of file diff --git a/docs/Project.toml b/docs/Project.toml index ae5693c..ba82290 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -10,10 +10,10 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [compat] Documenter = "0.27.24" -CUDA = "4.2.0" -Flux = "0.13.16" +CUDA = "4.4.1" +Flux = "0.14.6" JSOSolvers = "0.10.0" MLDatasets = "0.7.9" NLPModels = "0.20.0" -Zygote = "0.6.49" -julia = "^1.6.0" \ No newline at end of file +Zygote = "0.6.60" +julia = "^1.9.0" \ No newline at end of file diff --git a/docs/src/index.md b/docs/src/index.md index 343aad7..4455ca4 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -1,7 +1,7 @@ # FluxNLPModels.jl ## Compatibility -Julia ≥ 1.6. +Julia ≥ 1.9. ## How to install diff --git a/docs/src/tutorial.md b/docs/src/tutorial.md index 24a23e4..f07ca47 100644 --- a/docs/src/tutorial.md +++ b/docs/src/tutorial.md @@ -29,7 +29,7 @@ We will cover the following: using FluxNLPModels using Flux, NLPModels using Flux.Data: DataLoader -using Flux: onehotbatch, onecold, @epochs +using Flux: onehotbatch, onecold using Flux.Losses: logitcrossentropy using MLDatasets using JSOSolvers diff --git a/example/MNIST_cnn.jl b/example/MNIST_cnn.jl index 3c81345..0d56eed 100644 --- a/example/MNIST_cnn.jl +++ b/example/MNIST_cnn.jl @@ -1,7 +1,7 @@ using FluxNLPModels using CUDA, Flux, NLPModels using Flux.Data: DataLoader -using Flux: onehotbatch, onecold, @epochs +using Flux: onehotbatch, onecold using Flux.Losses: logitcrossentropy using MLDatasets using JSOSolvers diff --git a/src/FluxNLPModels.jl b/src/FluxNLPModels.jl index 9ffe11c..1e5954d 100644 --- a/src/FluxNLPModels.jl +++ b/src/FluxNLPModels.jl @@ -1,7 +1,7 @@ module FluxNLPModels using Flux, NLPModels -using Flux: onehotbatch, onecold, @epochs +using Flux: onehotbatch, onecold export AbstractFluxNLPModel, FluxNLPModel export reset_minibatch_train!, reset_minibatch_test! export minibatch_next_train!, minibatch_next_test! diff --git a/test/runtests.jl b/test/runtests.jl index bd0793b..d59464e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,7 +2,7 @@ using Test using FluxNLPModels using CUDA, Flux, NLPModels using Flux.Data: DataLoader -using Flux: onehotbatch, onecold, @epochs +using Flux: onehotbatch, onecold using Flux.Losses: logitcrossentropy using Base: @kwdef using MLDatasets