Skip to content

Commit 4dec51a

Browse files
committed
fix test error
1 parent 2431e57 commit 4dec51a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flows/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ function fnn(
7777
paramtype::Type{T} = Float64,
7878
) where {T<:AbstractFloat}
7979
# Create a chain of dense layers
80-
# First layer
81-
layers = [Flux.Dense(input_dim, hidden_dims[1], inlayer_activation)]
80+
# First layer (need to use Any[] otherwise it complains about type instability when pushing layers)
81+
layers = Any[Flux.Dense(input_dim, hidden_dims[1], inlayer_activation)]
8282

8383
# Hidden layers
8484
for i in 1:(length(hidden_dims) - 1)

0 commit comments

Comments
 (0)