# Retrieve neural network name inside registered hook

**URL:** <https://discuss.pytorch.org/t/retrieve-neural-network-name-inside-registered-hook/55398>\
**Category:** vision\
**Created:** [September 7, 2019, 1:31am UTC](https://discuss.pytorch.org/t/retrieve-neural-network-name-inside-registered-hook/55398 "2019-09-07T01:31:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [September 7, 2019, 7:34am UTC](https://discuss.pytorch.org/t/retrieve-neural-network-name-inside-registered-hook/55398/2 "2019-09-07T07:34:50Z")

</div>

Have a look at [this example](https://discuss.pytorch.org/t/how-can-l-load-my-best-model-as-a-feature-extractor-evaluator/17254/6) where you can pass additional names to the `get_activation` function.

---

_[View the full topic](https://discuss.pytorch.org/t/retrieve-neural-network-name-inside-registered-hook/55398)._
