# How to dropout with non zero value?

**URL:** <https://discuss.pytorch.org/t/how-to-dropout-with-non-zero-value/79561>\
**Category:** Uncategorized\
**Created:** [May 3, 2020, 6:18pm UTC](https://discuss.pytorch.org/t/how-to-dropout-with-non-zero-value/79561 "2020-05-03T18:18:28Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [January 1, 2022, 10:44pm UTC](https://discuss.pytorch.org/t/how-to-dropout-with-non-zero-value/79561/13 "2022-01-01T22:44:10Z")

</div>

If you want to pass the `mask` as an additional argument to the `forward` method of your custom `Dropout` layer, you should write this logic into the `forward` method of `VGG` explicitly and remove the usage of the `nn.Sequential` block as it expects a single input/output in the default implementation.

---

_[View the full topic](https://discuss.pytorch.org/t/how-to-dropout-with-non-zero-value/79561)._
