mmpretrain
mmpretrain copied to clipboard
Question about DistOptHook
Checklist
- I have searched related issues but cannot get the expected help. done.
- I have read related documents and don't know what to do. done.
Describe the question you meet
Hi,
I want to check the grad norm info when training. However, the current implementation of DistOptHook prevent the textlogger from priting gradnorm.
I can circumvent it by myself, but does the DistOptHook has its functionality? Can we move to mmcv OptHook?
I can raise a PR if neccessary.
Thanks.
Looks it's a legacy problem. Welcome to change it to the OptimizerHook
in mmcv, and we will test it.
This issue will be closed as it is inactive, feel free to re-open it if necessary.