cog-imperial / OMLT

Represent trained machine learning models as Pyomo optimization formulations
Other
281 stars 59 forks source link

More features for CNN in OMLT #129

Open zshiqiang opened 1 year ago

zshiqiang commented 1 year ago

Current implementation of convolutional 2D layer assumes (1) no paddings (2) no dilations (3) zero biases.

To add these features, we need:

By generalizing function _kernel_index_with_inputindexes in line 258 of https://github.com/cog-imperial/OMLT/blob/main/src/omlt/neuralnet/layer.py, it's possible to support more pooling and convolutional layers (e.g., 1D, 3D).