deephealthproject / eddl

European Distributed Deep Learning (EDDL) library. A general-purpose library initially developed to cover deep learning needs in healthcare use cases within the DeepHealth project.
https://deephealthproject.github.io/eddl/
MIT License
34 stars 10 forks source link

Addition of padding layer #270

Closed georgemavrakis-wings closed 3 years ago

georgemavrakis-wings commented 3 years ago

Good morning,

Problem description. The problem that I am facing is that I cannot find a way to custom pad the output of an intermediate layer, in order to use it as input in an Conv1D layer with padding option equal with 'none'. For example, I want to pass an input from a Conv1D layer with kernel size = 8. As far as I know, the padding = same option pads the input (1D case) by adding 3 zero columns to the left of the sample and 4 zero columns to the right. However, I want to pad the input in order to have 4 zero columns to the left and 3 zero columns to the right.

Describe the feature A pad layer which would take a layer as an input and would pad it along the user specified dimension with constant values or reflection of the borders for [x columns left, y columns right] (1D input) or [x columns left, y columns right], [z columns above, r columns below] (2D input)

salvacarrion commented 3 years ago

We'll try to add it asap

salvacarrion commented 3 years ago

Update: We're currently working on this feature

salvacarrion commented 3 years ago

Available in develop