masadcv / FastGeodis

Fast Implementation of Generalised Geodesic Distance Transform for CPU (OpenMP) and GPU (CUDA)
https://fastgeodis.readthedocs.io
BSD 3-Clause "New" or "Revised" License
90 stars 14 forks source link

Fix same padding compatibility with older pytorch versions #52

Closed masadcv closed 1 year ago

masadcv commented 1 year ago

Older pytorch versions do not support same padding. Hence this PR fixes this backward compatiblity issue by implementing same padding manually and supporting older pytorch versions that did not have this functionality.

Fixes #51