Skip to content

Commit

Permalink
Merge pull request #880 from Sentient07/non-deterministic
Browse files Browse the repository at this point in the history
Added a warning note in lasagne/random.py
  • Loading branch information
f0k committed Sep 15, 2017
2 parents ad94952 + 0754420 commit 20efd95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lasagne/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
used for weight initialization and seeding noise layers.
This can be replaced by a :class:`numpy.random.RandomState` instance with a
particular seed to facilitate reproducibility.
Note: When using cuDNN, the backward passes of convolutional and max-pooling
layers will introduce additional nondeterminism (for performance reasons).
For 2D convolutions, you can enforce a deterministic backward pass
implementation via the Theano flags ``dnn.conv.algo_bwd_filter=deterministic``
and ``dnn.conv.algo_bwd_data=deterministic``. Alternatively, you can disable
cuDNN completely with ``dnn.enabled=False``.
"""

import numpy as np
Expand Down

0 comments on commit 20efd95

Please sign in to comment.