Skip to content

Commit

Permalink
Documenter.jl update to 1.4.0 (#578)
Browse files Browse the repository at this point in the history
* documenter.jl update and minor changes to make it build

* Delete docs/Manifest.toml

* ignore manifest

* add missing doc
  • Loading branch information
dom-linkevicius authored Apr 27, 2024
1 parent 2f0b555 commit 6d168b4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build/
site/
Manifest.toml
4 changes: 1 addition & 3 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "0.27"
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ makedocs(modules = [NNlib],
# analytics = "UA-36890222-9",
assets = ["assets/flux.css"],
prettyurls = get(ENV, "CI", nothing) == "true"),
warnonly=[:missing_docs,]
)

deploydocs(repo = "github.com/FluxML/NNlib.jl.git",
Expand Down
10 changes: 10 additions & 0 deletions src/upsample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@ function upsample_nearest(x::AbstractArray{T,N}, scales::NTuple{S, <:Integer}) w
out
end

"""
∇upsample_nearest(Δ::AbstractArray{T,3}, scales::NTuple{S, <:Integer}) where T
# Arguments
- `Δ`: Incoming gradient array, backpropagated from downstream layers
- `scales`: scales by which the image was upsampled in the first place
# Outputs
- `dx`: Downsampled version of `Δ`
"""
function ∇upsample_nearest(x::AbstractArray{T,N}, scales::NTuple{S, <:Integer}) where {T,N,S}
outsize = ntuple(N) do d
d > S && return size(x,d)
Expand Down

0 comments on commit 6d168b4

Please sign in to comment.