aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/boosted_trees
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-07-11 01:58:34 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-11 02:01:39 -0700
commit95cfd8b3d9697775804889fe994cc934b7273b51 (patch)
tree282c29471ed8417ba06672688f7377d998bcb2fe /tensorflow/contrib/boosted_trees
parent6c9a796ac356a7323ac0aae225a5725c86a0db2a (diff)
Avoid breakages of the TF weighted quantiles library if used with values being non-numeric types such as strings.
PiperOrigin-RevId: 204087922
Diffstat (limited to 'tensorflow/contrib/boosted_trees')
-rw-r--r--tensorflow/contrib/boosted_trees/lib/quantiles/weighted_quantiles_summary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/boosted_trees/lib/quantiles/weighted_quantiles_summary.h b/tensorflow/contrib/boosted_trees/lib/quantiles/weighted_quantiles_summary.h
index a7e7bfc13c..69bb8fd4ad 100644
--- a/tensorflow/contrib/boosted_trees/lib/quantiles/weighted_quantiles_summary.h
+++ b/tensorflow/contrib/boosted_trees/lib/quantiles/weighted_quantiles_summary.h
@@ -51,7 +51,7 @@ class WeightedQuantilesSummary {
SummaryEntry() {
memset(this, 0, sizeof(*this));
- value = 0;
+ value = ValueType();
weight = 0;
min_rank = 0;
max_rank = 0;