PR for double backwards of nn.Fold and nn.Unfold (issue #33452) (#36379)
Summary:
soumith ezyang albanD After lots of experiments, I didn't manage to directly print the gradients of Fold/Unfold_backward (let me know if I am wrong).
Thus, in my testing codes, I compare the gradients of Fold/Unfold_backward implicitly by comparing the gradients of its following operation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36379
Differential Revision: D21040646
Pulled By: ezyang
fbshipit-source-id: dafdbfe2c7b20efa535402c7f81fce5c681fce2f