When you call your model directly, the internal __call__ function is called (source code 82).
This function registers the hooks and calls forward.
So you should always call the model directly and not model.forward().