The image padding machinery doesn't allow for extrapolation. This causes significant errors in the calculation of the derivative at the border, as noted in the documentation:
Ignore the values at the border since we expect them to be erroneous.
I took a look at the source to see whether I could bang out a fix in an hour, but was stymied by how heavily the current padding framework relies on indexing. Any suggestions on how one would implement this boundary condition?
The image padding machinery doesn't allow for extrapolation. This causes significant errors in the calculation of the derivative at the border, as noted in the documentation:
I took a look at the source to see whether I could bang out a fix in an hour, but was stymied by how heavily the current padding framework relies on indexing. Any suggestions on how one would implement this boundary condition?