Bugfix: Conv/FC: Adapt code generation to handle no bias in FC and Conv
Context
When no bias is provided in a convolution operator, the producer is None/nullptr which may not be correctly handled everywhere.
Modified files
- modified: aidge_export_cpp/kernels/convolution.hpp
- modified: aidge_export_cpp/kernels/fullyconnected.hpp
- modified: aidge_export_cpp/operators.py
Detailed major modifications
If the input[2] of a convolution or a fully connected is none. A nullptr is provided instead cast to the data type estimated from the operator output, and the code template is adapted to treat nullptr as a value of 0.
Clang-format coding style specified from aidge_core!185 (closed) And https://github.com/astral-sh/ruff
Merge request reports
Activity
Filter activity
mentioned in merge request !38 (merged)
This MR seems outdated and will be superseeded by !38 (merged).
Please register or sign in to reply