You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
The gradient of
np.pad
is wrong. See the following reproducible example:MXNet Implementation:
Output:
Jax Implementation:
Output:
Basically, the following line is not correct:
https://github.com/apache/incubator-mxnet/blob/b0c39f7ea983639093c63d7d2486bbef083a55d6/src/operator/numpy/np_pad_op-inl.h#L544-L551
We should change that to
In addition, I do not know why we need the
using namespace mxnet_op;
. @cassinixuThe text was updated successfully, but these errors were encountered: