Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott authored Jan 7, 2023
1 parent 4832bb8 commit 9425e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dropout!(B::AbstractArray, A::AbstractArray, p::Real; dims = :) = dropout!(_rng_
function dropout!(rng::AbstractRNG, dst::AbstractArray, src::AbstractArray, p::Real; dims=:)
size(dst) == size(src) || throw(DimensionMismatch("dropout! expects output array the same size as input"))
0 <= p <= 1 || throw(ArgumentError("dropout expects a probability 0 <= p <= 1"))
_rng_compat_array(rng, A)
_rng_compat_array(rng, src)
if p > 0
pT = convert(real(eltype(dst)), p)
_dropout!(rng, dst, src, pT, dims)
Expand Down

2 comments on commit 9425e50

@mcabbott
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/75300

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.8.15 -m "<description of version>" 9425e5060286891a012a7809ecd344682d30f403
git push origin v0.8.15

Please sign in to comment.