Skip to content

Commit

Permalink
Fix flakey tests (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 5, 2024
1 parent a7c5bb3 commit 42017ae
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

2 comments on commit 42017ae

@odow
Copy link
Collaborator Author

@odow odow commented on 42017ae Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/118779

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.5 -m "<description of version>" 42017ae346dac159e345a141a7357362a30efdf1
git push origin v0.1.5

Please sign in to comment.