pytorch
adb76ef5 - Expose API for backward execution order (#87507)

Comment changes are shownComment changes are hidden
Commit
2 years ago
Expose API for backward execution order (#87507) In this PR: - graph_task stores graph roots on construction so that we can later traverse through the graph - before the nodes are returned, they needed to be converted from raw_ptr to shared_ptr, and this should be OK because the graph is guaranteed to be alive Pull Request resolved: https://github.com/pytorch/pytorch/pull/87507 Approved by: https://github.com/albanD
Author
Committer
Parents
  • test
    • File
      test_autograd.py
  • torch/csrc
    • File
      Module.cpp
    • autograd
      • File
        engine.cpp
      • File
        function.h
      • File
        graph_task.h
    • distributed/autograd/engine
      • File
        dist_engine.cpp
Loading