Fix std::accumulate init value in xla::Product
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 14 Mar 2018 13:26:13 +0000 (06:26 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 14 Mar 2018 13:30:25 +0000 (06:30 -0700)
commitd0e3e52409b96392b5180c4600927284bede98c2
treec42fd3d66e8cec74b2c4142dcd70ea51c15671c7
parent979a1d449a98109b8e7319795c623c5e7ef17744
Fix std::accumulate init value in xla::Product

The return type for std::accumulate is determined by the type of the
init value what was incorrect resulting in wrong result for large
numbers.

PiperOrigin-RevId: 189019412
tensorflow/compiler/xla/util.cc