aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/random
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <bsteiner@google.com>2016-07-13 17:45:39 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-07-13 19:01:50 -0700
commit529e29712e681aefbf08539b6fae50fafdae8cc3 (patch)
tree775802ed1f719ab42ef366c1826a9c62358c166d /tensorflow/core/lib/random
parentf30460b9f69bcaf0b5b6721acd3e18d4dcf987d5 (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.h2
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);
}
}