Should backward hook be registered before forward pass?

Thanks for the answer!
Umm… could you explain why they call backward hook as broken? Because anyway the hook gives me the information of gradients well now, which is its original purpose…