Skip to content

'NoneType' object has no attribute 'ndim' when verifiying nonlinear network #91

@jannickstrobel

Description

@jannickstrobel

Bug Description

I am trying to verify a small network containing multiple nonlinearities. While the initial CROWN bound calculation works, there is an error in the first BaB round:

Exception has occurred: AttributeError
'NoneType' object has no attribute 'ndim'
  File "/home/strobel/alpha-beta-CROWN/complete_verifier/heuristics/nonlinear/bbps.py", line 485, in _fast_backward_propagation
    if bound.ndim < 3:

System configuration:

  • OS: Ubuntu 24.04.2
  • Python version: Python 3.11.9
  • Pytorch Version: PyTorch2.3.1
  • Have you tried to reproduce the problem in a cleanly created conda/virtualenv environment using official installation instructions and the latest code on the main branch?: Yes

Screenshots

The error occurs in file bbps.py in the "_fast_backward_propagation" method. When the name of the current node is not in "lAs", bound is None in Line 485.

Image Image

Full program run output: output.txt
Config file: config.txt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions