Integrate the Genie optimization engine to d2go (reapply D47502855)
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/599 Genie optimization engine has the assumption that when a training iteration is started, it is also finished. And the after_step hook is called. This assumption is not valid in d2go. https://www.internalfb.com/code/fbsource/[1537eddbd235e3f599709a493c1a80c7d016b3f8]/fbcode/vision/fair/detectron2/detectron2/engine/train_loop.py?lines=151-165 When an exception is triggered, the last iteration's after_step hook is not called. In this diff, we patch up the hook integration to ensure that the Genie after_step hook is always called. everything else remain the same as D47502855 Reviewed By: XiaoliangDai Differential Revision: D47611143 fbshipit-source-id: b8b1ae2f304a40cf74340bbaf35647332a9a1524
Showing
Please register or sign in to comment