diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-07-11 01:58:34 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-11 02:01:39 -0700 |
commit | 95cfd8b3d9697775804889fe994cc934b7273b51 (patch) | |
tree | 282c29471ed8417ba06672688f7377d998bcb2fe /tensorflow/contrib/boosted_trees | |
parent | 6c9a796ac356a7323ac0aae225a5725c86a0db2a (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.h | 2 |
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; |