pytorch
07ce0b43 - Remove backward for im2col and col2im (#85542)

Commit
2 years ago
Remove backward for im2col and col2im (#85542) `im2col` is a linear map, and `col2im` is its adjoint. As such, the adjoint to `col2im` is `im2col` (the adjoint of the adjoint is the original function. There's no point having explicit derivatives in ATen for these functions, so this PR deletes all these. Furthermore, along the way, we fix an error for the derivative of im2col for non-batched inputs. Pull Request resolved: https://github.com/pytorch/pytorch/pull/85542 Approved by: https://github.com/soulitzer, https://github.com/ngimel
Author
Committer
Parents
  • aten/src/ATen
    • functorch
      • File
        BatchRulesModules.cpp
    • native
      • File
        Col2Im.cpp
      • File
        Im2Col.cpp
      • cuda
        • File
          Col2Im.cu
        • File
          Im2Col.cu
      • File
        native_functions.yaml
  • functorch/test
    • File
      test_ops.py
  • test/forward_backward_compatibility
    • File
      check_forward_backward_compatibility.py
  • tools/autograd
    • File
      derivatives.yaml
    • File
      gen_variable_type.py
  • torch
    • _decomp
      • File
        decompositions.py
    • testing/_internal
      • File
        common_methods_invocations.py