if nn.functional.interpolate is used for upsampling, then one can register forward hooks on nn.Upsample.
However, one can always wrap nn.functional.interpolate into a nn.Module inherited class to define a module containing nn.functional.interpolate. Then instantiate the defined module in the __init__ function of the model, where the defined modules can be registered forward hooks.