Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Oct 17, 2024
1 parent f288f3f commit aeb421b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,10 @@ end
@test modules[5] === m2
@test modules[6] === m3

mod_par = Flux.modules(Parallel(Flux.Bilinear(2,2,2,cbrt), Dense(2,2,abs), Dense(2,2,abs2)))
mod_par = Flux.modules(Parallel(Flux.Bilinear(2,2,2,cbrt), Dense(2=>2,abs), Dense(2=>2,abs2)))
@test length(mod_par) == 5

mod_rnn = Flux.modules(Chain(Dense(2,3), BatchNorm(3), LSTM(3,4)))
mod_rnn = Flux.modules(Chain(Dense(2=>3), BatchNorm(3), LSTM(3=>4)))
@test length(mod_rnn) == 6
@test mod_rnn[end] isa Flux.LSTMCell

Expand Down

0 comments on commit aeb421b

Please sign in to comment.