Dropout with dims test passing.
This commit is contained in:
parent
c7c0ee2cbc
commit
bd7e3b1f41
@ -14,9 +14,10 @@ Does nothing to the input once in [`testmode!`](@ref).
|
||||
"""
|
||||
mutable struct Dropout{F}
|
||||
p::F
|
||||
function Dropout(p)
|
||||
dims::Union{Colon, Int, NTuple{N, Int} where N}
|
||||
function Dropout(p; dims = :)
|
||||
@assert 0 ≤ p ≤ 1
|
||||
new{typeof(p)}(p)
|
||||
Dropout{typeof(p)}(p, dims)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user