# How to get deterministic behavior?

**URL:** <https://discuss.pytorch.org/t/how-to-get-deterministic-behavior/18177>\
**Category:** Uncategorized\
**Created:** [May 16, 2018, 4:34am UTC](https://discuss.pytorch.org/t/how-to-get-deterministic-behavior/18177 "2018-05-16T04:34:41Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![SimonW](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/simonw/32/1702_2.png) [@SimonW](https://discuss.pytorch.org/u/SimonW)\
**Post date:** [June 20, 2018, 4:34pm UTC](https://discuss.pytorch.org/t/how-to-get-deterministic-behavior/18177/11 "2018-06-20T16:34:29Z")

</div>

The problem is `numpy`. We can’t assume that `numpy` exists so you’d have to set the seed for `numpy` in workers yourself.

---

_[View the full topic](https://discuss.pytorch.org/t/how-to-get-deterministic-behavior/18177)._
