Skip to content

Commit

Permalink
Fix flakey tests
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Nov 5, 2024
1 parent ad57317 commit 66110c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_Flux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function test_gray_box_scalar_output()
chain = Flux.Chain(Flux.Dense(2 => 16, Flux.relu), Flux.Dense(16 => 1))
model = Model(Ipopt.Optimizer)
set_silent(model)
set_attribute(model, "max_iter", 5)
set_attribute(model, "max_iter", 1)
@variable(model, 0 <= x[1:2] <= 1)
y, formulation = MathOptAI.add_predictor(
model,
Expand Down Expand Up @@ -219,7 +219,7 @@ function test_gray_box_scalar_output_hessian()
chain = Flux.Chain(Flux.Dense(2 => 16, Flux.relu), Flux.Dense(16 => 1))
model = Model(Ipopt.Optimizer)
set_silent(model)
set_attribute(model, "max_iter", 5)
set_attribute(model, "max_iter", 1)
@variable(model, 0 <= x[1:2] <= 1)
y, formulation = MathOptAI.add_predictor(
model,
Expand All @@ -240,7 +240,7 @@ function test_gray_box_vector_output()
chain = Flux.Chain(Flux.Dense(3 => 16, Flux.relu), Flux.Dense(16 => 2))
model = Model(Ipopt.Optimizer)
set_silent(model)
set_attribute(model, "max_iter", 5)
set_attribute(model, "max_iter", 1)
@variable(model, 0 <= x[1:3] <= 1)
y, formulation = MathOptAI.add_predictor(
model,
Expand All @@ -261,7 +261,7 @@ function test_gray_box_vector_output_hessian()
chain = Flux.Chain(Flux.Dense(3 => 16, Flux.relu), Flux.Dense(16 => 2))
model = Model(Ipopt.Optimizer)
set_silent(model)
set_attribute(model, "max_iter", 5)
set_attribute(model, "max_iter", 1)
@variable(model, 0 <= x[1:3] <= 1)
y, formulation = MathOptAI.add_predictor(
model,
Expand Down

0 comments on commit 66110c8

Please sign in to comment.