I get a valid output:
y = model(x)
forward_pre_hook_fn <class 'torch.nn.modules.linear.Linear'>

Also, based on the screenshot it seems you are seeing the same output.
PS: you can post code snippets by wrapping them into three backticks ```, which makes debugging easier.