Is there a way to access the local tensors in a backward pass in register_backward_hook

Currently the register_backward_hook/register_backward_full_hook has only access to the grad_inputs and the grad_outputs. I would like to know if there is any other way to access the local inputs to backward pass (Outputs of a forward pass) via backward hook or some other means?

Hi, did you find the answers?
if you know how to do, could you please share?