Closed stephenyan1231 closed 6 months ago
This pull request was exported from Phabricator. Differential Revision: D52152688
This pull request was exported from Phabricator. Differential Revision: D52152688
This pull request was exported from Phabricator. Differential Revision: D52152688
This pull request was exported from Phabricator. Differential Revision: D52152688
This pull request was exported from Phabricator. Differential Revision: D52152688
This pull request was exported from Phabricator. Differential Revision: D52152688
This pull request has been merged in facebookresearch/d2go@8f130231ebb783cb1e353bdd78f22efcd9ae1ec7.
Summary: For a QAT model, it contains observers. After QAT training, those observers already contain updated statistics, such as min_val, max_val.
When we want to export FP32 QAT model for a sanity check, if we call fuse_utils.fuse_model() again (which is often already called when we build the QAT model before QAT training), it will remove statistics in the observers.
Differential Revision: D52152688