Skip to content

Commit 9818412

Browse files
Fixed bugs with Sigmoid layers in C++ ONNX parser (#733)
1 parent de73b92 commit 9818412

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Added support for ONNX networks with tanh nodes to command-line interface
55
* Added proof producing versions of Sign, Max, Absolute Value and Disjunction constraints
66
* Added support for properties provided in VNN-LIB format for ONNX networks via the Python API
7+
* Fixed bugs when parsing Sigmoid layers in the C++ ONNX parser.
78
* Supported additional non-linear constraints Softmax and Bilinear
89
* Removed dependency on torch and drop support for Python3.7
910
* Bumped ONNX version to >= 1.15.0

src/input_parsers/NetworkParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void NetworkParser::addRelu( Variable inputVar, Variable outputVar )
6262

6363
void NetworkParser::addSigmoid( Variable inputVar, Variable outputVar )
6464
{
65-
_signList.append( new SignConstraint( inputVar, outputVar ) );
65+
_sigmoidList.append( new SigmoidConstraint( inputVar, outputVar ) );
6666
}
6767

6868
void NetworkParser::addMaxConstraint( Variable var, Set<Variable> elements )
@@ -152,7 +152,7 @@ void NetworkParser::getMarabouQuery( InputQuery& query )
152152
for ( std::pair<Variable,float> upper : _upperBounds )
153153
{
154154
ASSERT( upper.first < _numVars );
155-
query.setLowerBound( upper.first,upper.second );
155+
query.setUpperBound( upper.first,upper.second );
156156
}
157157
}
158158

0 commit comments

Comments
 (0)