Skip to content

Commit

Permalink
use LazySets v3
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Nov 21, 2024
1 parent a776ad1 commit 9bfdbf5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"

[compat]
ControllerFormats = "0.2.3"
LazySets = "2.14"
LazySets = "3"
LinearAlgebra = "<0.0.1, 1.6"
ReachabilityBase = "0.2.1 - 0.3"
Reexport = "0.2, 1"
Expand Down
6 changes: 3 additions & 3 deletions src/BackwardAlgorithms/PolyhedraBackward.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end

function _backward_pwa(Y::LazySet{N}, act::ActivationFunction,
::PolyhedraBackward) where {N}
@assert is_polyhedral(Y) "expected a polyhedron, got $(typeof(Y))"
@assert ispolyhedral(Y) "expected a polyhedron, got $(typeof(Y))"

out = LazySet{N}[]
n = dim(Y)
Expand Down Expand Up @@ -158,7 +158,7 @@ end

# apply inverse ReLU activation function to 2D polyhedron
function _backward_2D(Y::LazySet{N}, ::ReLU) where {N}
@assert is_polyhedral(Y) "expected a polyhedron, got $(typeof(Y))"
@assert ispolyhedral(Y) "expected a polyhedron, got $(typeof(Y))"

out = LazySet{N}[]

Expand Down Expand Up @@ -242,7 +242,7 @@ end
# maps a linear constraint cx <= d to a new constraint whose normal vector is
# [c1v1, c2v2, ...], and since v is a bitvector, it acts as a filter.
function _backward_nD(Y::LazySet{N}, ::ReLU) where {N}
@assert is_polyhedral(Y) "expected a polyhedron, got $(typeof(Y))"
@assert ispolyhedral(Y) "expected a polyhedron, got $(typeof(Y))"

out = LazySet{N}[]
n = dim(Y)
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Aqua = "0.8.9"
CDDLib = "0.6 - 0.9"
ControllerFormats = "0.2"
IntervalConstraintProgramming = "0.9 - 0.13"
LazySets = "2.14"
LazySets = "3"
Optim = "1"
Polyhedra = "0.6 - 0.7"
ReachabilityAnalysis = "0.22 - 0.27"

0 comments on commit 9bfdbf5

Please sign in to comment.