# How to print learnt parameters of batch normalization?

**URL:** <https://discuss.pytorch.org/t/how-to-print-learnt-parameters-of-batch-normalization/6062>\
**Category:** Uncategorized\
**Created:** [August 10, 2017, 6:59pm UTC](https://discuss.pytorch.org/t/how-to-print-learnt-parameters-of-batch-normalization/6062 "2017-08-10T18:59:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kko](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/k/ed8c4c/32.png) [@kko](https://discuss.pytorch.org/u/kko)\
**Post date:** [August 10, 2017, 6:59pm UTC](https://discuss.pytorch.org/t/how-to-print-learnt-parameters-of-batch-normalization/6062/1 "2017-08-10T18:59:37Z")

</div>

What is the easiest way to print learnt parameters beta and gamma from batch normalization? When I print vars(net.state\_dict()), all I see is running\_mean, running\_var, bias and weight.

---

<div class="post-metadata">

**Author:** ![gchanan](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/g/e5b9ba/32.png) [@gchanan](https://discuss.pytorch.org/u/gchanan)\
**Post date:** [August 10, 2017, 8:15pm UTC](https://discuss.pytorch.org/t/how-to-print-learnt-parameters-of-batch-normalization/6062/2 "2017-08-10T20:15:32Z")

</div>

isn’t beta == bias and gamma == weight?
