pytorch
ea59251f - Fix model_name not logged properly issue. (#45488)

Commit
4 years ago
Fix model_name not logged properly issue. (#45488) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/45488 model_name logging was broken, issue is from the recent change of assigning the method name into the module name, this diff is fixing it. ghstack-source-id: 113103942 Test Plan: made sure that now the model_name is logged from module_->name(). verified with one model which does not contain the model metadata, and the model_name field is logged as below: 09-28 21:59:30.065 11530 12034 W module.cpp: TESTINGTESTING run() module = __torch__.Model 09-28 21:59:30.065 11530 12034 W module.cpp: TESTINGTESTING metadata does not have model_name assigning to __torch__.Model 09-28 21:59:30.066 11530 12034 W MobileModuleQPLObserver.cpp: TESTINGTESTING onEnterRunMethod log model_name = __torch__.Model 09-28 21:59:30.066 11530 12034 W MobileModuleQPLObserver.cpp: TESTINGTESTING onEnterRunMethod log method_name = labels 09-28 21:59:30.068 11530 12034 W MobileModuleQPLObserver.cpp: TESTINGTESTING onExitRunMethod() Reviewed By: linbinyu Differential Revision: D23984165 fbshipit-source-id: 5b00f50ea82106b695c2cee14029cb3b2e02e2c8
Author
Parents
Loading