diff options
author | Benoit Steiner <bsteiner@google.com> | 2016-07-13 17:45:39 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-07-13 19:01:50 -0700 |
commit | 529e29712e681aefbf08539b6fae50fafdae8cc3 (patch) | |
tree | 775802ed1f719ab42ef366c1826a9c62358c166d /tensorflow/core/lib/random | |
parent | f30460b9f69bcaf0b5b6721acd3e18d4dcf987d5 (diff) |
Made sure that philox arrays are initialized properly.
Change: 127385633
Diffstat (limited to 'tensorflow/core/lib/random')
-rw-r--r-- | tensorflow/core/lib/random/philox_random.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/lib/random/philox_random.h b/tensorflow/core/lib/random/philox_random.h index 03a7f124cf..1fec5a3b44 100644 --- a/tensorflow/core/lib/random/philox_random.h +++ b/tensorflow/core/lib/random/philox_random.h @@ -51,7 +51,7 @@ class Array { public: PHILOX_DEVICE_INLINE Array() { for (int i = 0; i < ElementCount; ++i) { - data_[i] = T(); + data_[i] = T(0); } } |