Dropout with dims test passing.

This commit is contained in:
thebhatman 2019-06-12 22:16:11 +05:30
parent c7c0ee2cbc
commit bd7e3b1f41

View File

@ -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