pytorch
34330213 - Update base for Update on "Update backward definition for more operators and reenable tests in test_ops.py"

Commit
4 years ago
Update base for Update on "Update backward definition for more operators and reenable tests in test_ops.py" This PR: 1. Fixes https://github.com/pytorch/pytorch/issues/41510. Updates backward formula for the following functions: `asin`, `acos`, `asinh`, `acosh`, `atan`, `atanh`, `div`, `log`, `log10`, `log2`, `log1p`, `pow`, `reciprocal`, `angle`. 2. Re-enables the tests in `test_ops.py`. 3. Fixes a bug in `.pow()` for the case when exp is complex and equals 1.0 https://github.com/pytorch/pytorch/pull/44444/files#diff-9fa1985487308c7241bba078a8622c44L33 . 4. Adds dispatch for complex dtypes for `tanh_backward`. 5. Re-enables commented tests in `common_methods_invocation.py`. [ghstack-poisoned]
Author
  • .circleci
    • docker/common
      • File
        install_base.sh
    • scripts
      • File
        binary_ios_build.sh
  • File
    .gitmodules
  • aten/src/ATen/native
    • File
      Loss.cpp
    • File
      native_functions.yaml
    • quantized
      • File
        QTensor.cpp
      • cpu
        • File
          qembeddingbag_prepack.cpp
  • caffe2/operators
    • File
      roi_align_gradient_op.cc
    • File
      roi_align_gradient_op.cu
    • File
      roi_align_op.cc
    • File
      roi_align_op.cu
    • File
      roi_align_rotated_gradient_op.cu
    • File
      roi_align_rotated_op.cc
    • File
      roi_align_rotated_op.cu
    • File
      roi_pool_op.cc
    • File
      roi_pool_op.cu
  • File
    mypy.ini
  • test
    • backward_compatibility
      • File
        check_backward_compatibility.py
    • cpp/api
      • File
        functional.cpp
      • File
        modules.cpp
    • quantization
      • File
        test_quantize_fx.py
      • File
        test_quantized_tensor.py
    • File
      test_mobile_optimizer.py
    • File
      test_optim.py
    • File
      test_utils.py
  • third_party
    • File
      valgrind
  • tools/autograd
    • File
      derivatives.yaml
    • File
      gen_python_functions.py
  • torch
    • File
      CMakeLists.txt
    • _C
      • __init__.pyi.in
    • csrc
      • File
        Module.cpp
      • api
        • include/torch/nn
          • functional
            • File
              loss.h
          • modules
            • File
              loss.h
          • options
            • File
              loss.h
        • src/nn/modules
          • File
            loss.cpp
      • distributed/c10d
        • File
          reducer.cpp
    • nn
      • modules
        • File
          loss.py
      • parallel
        • File
          distributed.py
    • File
      overrides.py
    • quantization
      • fx
        • File
          quantization_patterns.py
        • File
          quantize.py
        • File
          standalone_module.py
      • File
        quantize_fx.py
    • testing/_internal/distributed
      • File
        distributed_test.py
    • utils/benchmark/utils
      • File
        timer.py
      • valgrind_wrapper
        • File
          __init__.py
        • File
          timer_interface.py