fastmachinelearning / hls4ml

Machine learning on FPGAs using HLS
https://fastmachinelearning.org/hls4ml
Apache License 2.0
1.27k stars 409 forks source link

Fix parsing of ZeroPadding layers #595

Closed vloncar closed 2 years ago

vloncar commented 2 years ago

Description

Fixes parsing of ZeroPadding1D/2D layers. These layers expect the input height/width to be specified. When we insert these layers to support the "same" padding of Conv1D/2D layers we properly set these values, but when parsing a Keras model that has these layers we didn't do that

Type of change

A test of ZeroPadding1D/2D layer functionality is included.