# How the pytorch freeze network in some layers, only the rest of the training?

**URL:** <https://discuss.pytorch.org/t/how-the-pytorch-freeze-network-in-some-layers-only-the-rest-of-the-training/7088>\
**Category:** Uncategorized\
**Created:** [September 6, 2017, 2:24am UTC](https://discuss.pytorch.org/t/how-the-pytorch-freeze-network-in-some-layers-only-the-rest-of-the-training/7088 "2017-09-06T02:24:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![James\_Chen](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@James\_Chen](https://discuss.pytorch.org/u/James_Chen)\
**Post date:** [October 30, 2017, 7:47am UTC](https://discuss.pytorch.org/t/how-the-pytorch-freeze-network-in-some-layers-only-the-rest-of-the-training/7088/4 "2017-10-30T07:47:50Z")

</div>

I am wondering whether to set .eval() for those frozen layers since it may still update its running mean and running var.

---

_[View the full topic](https://discuss.pytorch.org/t/how-the-pytorch-freeze-network-in-some-layers-only-the-rest-of-the-training/7088)._
