pytorch
276deb6d - Update on "[DDP] Disable reducer hooks from running outside of DDP backwards."

Commit
3 years ago
Update on "[DDP] Disable reducer hooks from running outside of DDP backwards." Sometimes local modules can fire hooks (such as when user calls backward after using `ddp_module.module` explicitly). This isn't supported behavior and can cause issues with various state and gradient reduction we run in DDP, so it's best to disable this entirely. Differential Revision: [D29435737](https://our.internmc.facebook.com/intern/diff/D29435737/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D29435737/)! [ghstack-poisoned]
Author
  • .circleci/docker/common
    • File
      install_conda.sh
  • .github
    • File
      scale-config.yml
    • workflows
      • File
        lint.yml
  • .jenkins/pytorch
    • File
      macos-test.sh
    • win-test-helpers
      • File
        build_pytorch.bat
      • File
        setup_pytorch_env.bat
  • caffe2
    • perfkernels
      • File
        lstm_unit_cpu-impl.h
    • predictor
      • File
        transforms.cc
    • utils
      • File
        conversions.h
      • File
        cpuid.h
      • File
        eigen_utils.h
      • File
        string_utils.h
  • File
    mypy.ini
  • test
    • benchmark_utils
      • File
        test_benchmark_utils.py
    • quantization/fx
      • File
        test_quantize_fx.py
    • File
      run_test.py
    • File
      test_expecttest.py
  • tools
    • File
      build_variables.bzl
  • torch
    • autograd
      • File
        function.py
    • csrc
      • distributed/c10d
        • File
          reducer.cpp
        • File
          reducer.hpp
      • jit/runtime/static
        • File
          ops.cpp
    • fx
      • File
        _symbolic_trace.py
    • jit
      • File
        _script.py
    • quantization/fx
      • File
        prepare.py
    • testing/_internal
      • File
        common_quantization.py
      • File
        common_utils.py
      • distributed
        • File
          distributed_test.py
      • File
        expecttest.py