synsense / sinabs

A deep learning library for spiking neural networks which is based on PyTorch, focuses on fast training and supports inference on neuromorphic hardware.
https://sinabs.readthedocs.io
GNU Affero General Public License v3.0
77 stars 8 forks source link

More informative errors when a chip config cannot be made #180

Open ssinhaleite opened 9 months ago

ssinhaleite commented 9 months ago

When the DynapcnnNetwork.make_config fails, it is often not clear why. It would be helpful to get a brief error message of what failed.

Also, when no suitable mapping of layers to chips is found, currently a ValueError is raised, which is quite generic and makes it hard to catch this specific error in other methods. It might help to include a more specific Error type.