pytorch
e9e6cc8c - Added Prehook option to prepare method (#41863)

Commit
4 years ago
Added Prehook option to prepare method (#41863) Summary: Added a logic so that if a prehook is passed into the prepare method during quantization, then the hook will be added as a prehook to all leaf nodes (and modules specified in the non_leaf_module_list). Pull Request resolved: https://github.com/pytorch/pytorch/pull/41863 Test Plan: Small demo, made simple module then called prepare with prehook parameter set to the numeric suite logger, printed the results to verify its what we wanted {F245156246} Reviewed By: jerryzh168 Differential Revision: D22671288 Pulled By: edmundw314 fbshipit-source-id: ce65a00830ff03360a82c0a075b3b6d8cbc4362e
Author
Parents
Loading