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

Allow asymmetric padding in ONNX #315

Closed salvacarrion closed 2 years ago

salvacarrion commented 2 years ago

The problem related to asymmetric padding is only for cuDNN. Both, CPU and GPU (CUDA), support asymmetric padding.

Another problem that arises from this issue is that we cannot load a model such as GoogLeNet-3 (from onnx repo):

==================================================================
⚠️  Padding asymmetry detected. (top=0, bottom=2, left=0, right=2).
Layer name: maxpool2d2 (LMaxPool::LMaxPool) ⚠️
==================================================================

terminate called after throwing an instance of 'std::runtime_error'
  what():  RuntimeError: LMaxPool::LMaxPool