We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2431e57 commit 4dec51aCopy full SHA for 4dec51a
src/flows/utils.jl
@@ -77,8 +77,8 @@ function fnn(
77
paramtype::Type{T} = Float64,
78
) where {T<:AbstractFloat}
79
# Create a chain of dense layers
80
- # First layer
81
- layers = [Flux.Dense(input_dim, hidden_dims[1], inlayer_activation)]
+ # First layer (need to use Any[] otherwise it complains about type instability when pushing layers)
+ layers = Any[Flux.Dense(input_dim, hidden_dims[1], inlayer_activation)]
82
83
# Hidden layers
84
for i in 1:(length(hidden_dims) - 1)
0 commit comments