This breaks outputsize when a model uses any functions from that package. For example, FluxML/NNlib.jl#629 (comment). The easiest fix is to copy
|
for f in [:copy, :zero, :one, :oneunit, |
|
:+, :-, :abs, :abs2, :inv, |
|
:exp, :log, :log1p, :log2, :log10, |
|
:sqrt, :tanh, :conj] |
|
@eval Base.$f(::Nil) = nil |
|
end |
for one or more functions in SpecialFunctions, but I'm wondering if there's a better way.
This breaks
outputsizewhen a model uses any functions from that package. For example, FluxML/NNlib.jl#629 (comment). The easiest fix is to copyFlux.jl/src/outputsize.jl
Lines 25 to 30 in 009d984