Retrieve neural network name inside registered hook

Have a look at this example where you can pass additional names to the get_activation function.