Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jun 6, 2024
1 parent da76b0a commit e179d52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/OmeletteLuxExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function _add_predictor(predictor::Omelette.Pipeline, layer::Lux.Dense, p)
if layer.activation === identity
# Do nothing
elseif layer.activation === Lux.NNlib.relu
push!(predictor.layers, Omelette.ReLUBigM(1e6))
push!(predictor.layers, Omelette.ReLUBigM(1e4))
else
error("Unsupported activation function: $x")
end
Expand Down
4 changes: 2 additions & 2 deletions test/test_ReLU.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function test_ReLU_BigM()
fix.(x, [-1, 2])
optimize!(model)
@assert is_solved_and_feasible(model)
@test value.(y) [0.0, 2.]
@test value.(y) [0.0, 2.0]
return
end

Expand Down Expand Up @@ -64,7 +64,7 @@ function test_ReLU_Quadratic()
fix.(x, [-1, 2])
optimize!(model)
@assert is_solved_and_feasible(model)
@test value.(y) [0.0, 2.]
@test value.(y) [0.0, 2.0]
return
end

Expand Down

0 comments on commit e179d52

Please sign in to comment.