Skip to content

Commit

Permalink
remove 1.6 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Nov 8, 2024
1 parent cc5cc4e commit 5ea9e76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- '1'
- 'nightly'
- "1.10"
os:
- ubuntu-latest
arch:
Expand Down
3 changes: 2 additions & 1 deletion ext/OptimisersEnzymeCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function update!(opt_state, model_grad::Duplicated)
nothing
end

# This function strips the returned gradient to be Zygote-like:
# This function strips the returned gradient to be Zygote-like,
# most importantly prune=nothing removes 2nd appearance of shared gradient to avoid double-counting.
_grad_or_nothing(dup::Duplicated) = fmapstructure(_grad_or_nothing, dup.dval; prune=nothing)
_grad_or_nothing(::Const) = nothing
_grad_or_nothing(x) = isnumeric(x) ? x : nothing
Expand Down

0 comments on commit 5ea9e76

Please sign in to comment.