cog-imperial / OMLT

Represent trained machine learning models as Pyomo optimization formulations
Other
271 stars 57 forks source link

More features for CNN in OMLT #129

Open zshiqiang opened 11 months ago

zshiqiang commented 11 months 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).