Skip to content

Commit

Permalink
Upgrade bias -> use_bias
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 1, 2023
1 parent 2e9c500 commit 5ffb5c1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Random.seed!(rng, seed)

model = Lux.Chain(Lux.Dense(2, 2),
DEQs.DeepEquilibriumNetwork(Lux.Parallel(+,
Lux.Dense(2, 2; bias=false),
Lux.Dense(2, 2; bias=false)),
Lux.Dense(2, 2; use_bias=false),
Lux.Dense(2, 2; use_bias=false)),
DEQs.ContinuousDEQSolver(;
abstol=0.1f0,
reltol=0.1f0,
Expand Down
4 changes: 2 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Random.seed!(rng, seed)

model = Lux.Chain(Lux.Dense(2, 2),
DEQs.DeepEquilibriumNetwork(Lux.Parallel(+,
Lux.Dense(2, 2; bias=false),
Lux.Dense(2, 2; bias=false)),
Lux.Dense(2, 2; use_bias=false),
Lux.Dense(2, 2; use_bias=false)),
DEQs.ContinuousDEQSolver(;
abstol=0.1f0,
reltol=0.1f0,
Expand Down
12 changes: 6 additions & 6 deletions test/adjoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function test_deep_equilibrium_network_adjoint()
for solver in DEFAULT_DEQ_SOLVERS(), jacobian_regularization in (true, false)
sensealg = SteadyStateAdjoint()
model = DeepEquilibriumNetwork(Parallel(+,
get_dense_layer(2, 2; bias=false),
get_dense_layer(2, 2; bias=false)),
get_dense_layer(2, 2; use_bias=false),
get_dense_layer(2, 2; use_bias=false)),
solver;
sensealg,
jacobian_regularization,
Expand Down Expand Up @@ -86,8 +86,8 @@ function test_skip_deep_equilibrium_network_adjoint()
for solver in DEFAULT_DEQ_SOLVERS(), jacobian_regularization in (true, false)
sensealg = SteadyStateAdjoint()
model = SkipDeepEquilibriumNetwork(Parallel(+,
get_dense_layer(2, 2; bias=false),
get_dense_layer(2, 2; bias=false)),
get_dense_layer(2, 2; use_bias=false),
get_dense_layer(2, 2; use_bias=false)),
get_dense_layer(2, 2),
solver;
sensealg,
Expand Down Expand Up @@ -121,8 +121,8 @@ function test_skip_reg_deep_equilibrium_network_adjoint()
for solver in DEFAULT_DEQ_SOLVERS(), jacobian_regularization in (true, false)
sensealg = SteadyStateAdjoint()
model = SkipDeepEquilibriumNetwork(Parallel(+,
get_dense_layer(2, 2; bias=false),
get_dense_layer(2, 2; bias=false)),
get_dense_layer(2, 2; use_bias=false),
get_dense_layer(2, 2; use_bias=false)),
nothing,
solver;
sensealg,
Expand Down

0 comments on commit 5ffb5c1

Please sign in to comment.