Skip to content

Commit

Permalink
Fix issue #23
Browse files Browse the repository at this point in the history
  • Loading branch information
shizhouxing committed Mar 25, 2022
1 parent 214710e commit 02f6266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_LiRPA/bound_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ def compute_bounds(self, x=None, aux=None, C=None, method='backward', IBP=False,

# check whether weights are perturbed and set nonlinear for the BoundMatMul operation
for n in self._modules.values():
if isinstance(n, (BoundLinear, BoundConv, BoundBatchNormalization)):
if type(n) in [BoundLinear, BoundConv, BoundBatchNormalization]:
n.nonlinear = False
for l_name in n.input_name[1:]:
node = self._modules[l_name]
Expand Down

0 comments on commit 02f6266

Please sign in to comment.