custom precision dtype for AMP training on D2 backend
Summary: X-link: https://github.com/facebookresearch/detectron2/pull/4654 Pull Request resolved: https://github.com/facebookresearch/d2go/pull/412 Support custom precision dtype [float16, bfloat16] for AMP training on D2 (https://github.com/facebookresearch/d2go/commit/87374efb134e539090e0b5c476809dc35bf6aedb) backend. There's an old config key `SOLVER.AMP.PRECISION` that only works on lightning backend. This diff enables this config key on D2 (https://github.com/facebookresearch/d2go/commit/87374efb134e539090e0b5c476809dc35bf6aedb) backend (train_net binary) as well. Reviewed By: tax313, wat3rBro Differential Revision: D40811604 fbshipit-source-id: 58da17ae1519a54243b5295eb4253c297e4d9296
Showing
d2go/trainer/helper.py
0 → 100644
Please register or sign in to comment