# How can I add simple modification for the forward method of ResNet50?

**URL:** <https://discuss.pytorch.org/t/how-can-i-add-simple-modification-for-the-forward-method-of-resnet50/131403>\
**Category:** vision\
**Created:** [September 8, 2021, 8:33am UTC](https://discuss.pytorch.org/t/how-can-i-add-simple-modification-for-the-forward-method-of-resnet50/131403 "2021-09-08T08:33:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![NBu](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/n/4491bb/32.png) [@NBu](https://discuss.pytorch.org/u/NBu)\
**Post date:** [September 9, 2021, 2:18pm UTC](https://discuss.pytorch.org/t/how-can-i-add-simple-modification-for-the-forward-method-of-resnet50/131403/2 "2021-09-09T14:18:00Z")

</div>

I’ve done it by following instructions in this post: [How can I replace the forward method of a predefined torchvision model with my customized forward function? - #8 by Shisho\_Sama](https://discuss.pytorch.org/t/how-can-i-replace-the-forward-method-of-a-predefined-torchvision-model-with-my-customized-forward-function/54224/8)

---

_[View the full topic](https://discuss.pytorch.org/t/how-can-i-add-simple-modification-for-the-forward-method-of-resnet50/131403)._
