Are forward and backward hooks executed in a seperate process?

I was wondering if function specified at module.register_forward_hook(function_to_call) is executed in a separate Python process or not?

Never mind I just checked. They are executed in same process.

1 Like