`export ReLU
“”"
$(TYPEDEF)
Represents a ReLU operation.
p(x)
is shorthand for relu(x)
when p
is an instance of
ReLU
.
“”"
struct ReLU <: Layer
tightening_algorithm::Union{TighteningAlgorithm, Nothing}
end
ReLU() = ReLU(nothing)
Base.hash(a::ReLU, h::UInt) = hash(:ReLU, h)
function Base.show(io::IO, p::ReLU)
print(io, “ReLU()”)
end
(p::ReLU)(x::Array{<:Real}) = relu(x)
(p::ReLU)(x::Array{<:JuMPLinearType}) = (Memento.info(MIPVerify.LOGGER, “Applying $p …”); relu(x, nta = p.tightening_algorithm))
`
代码中的最后两行代码的写法的语义是什么