diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-04-03 11:51:13 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-04-03 13:04:27 -0700 |
commit | b63e9b5a01d94bb13b38b77eaacf00ec4d72b698 (patch) | |
tree | 4cac5679c9c4493115ffb41a6ae2498934afaf01 /tensorflow/contrib/boosted_trees/resources | |
parent | 24c9cd77d586ad900ab7da09f391425e99c11faf (diff) |
Fix build broken by cl/151008918 by adding missing #include.
Change: 152045097
Diffstat (limited to 'tensorflow/contrib/boosted_trees/resources')
-rw-r--r-- | tensorflow/contrib/boosted_trees/resources/decision_tree_ensemble_resource.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/contrib/boosted_trees/resources/decision_tree_ensemble_resource.h b/tensorflow/contrib/boosted_trees/resources/decision_tree_ensemble_resource.h index 90e641f4bd..45c3bbadfc 100644 --- a/tensorflow/contrib/boosted_trees/resources/decision_tree_ensemble_resource.h +++ b/tensorflow/contrib/boosted_trees/resources/decision_tree_ensemble_resource.h @@ -19,6 +19,7 @@ #include "tensorflow/contrib/boosted_trees/resources/stamped_resource.h" #include "tensorflow/core/framework/resource_mgr.h" #include "tensorflow/core/platform/mutex.h" +#include "tensorflow/core/platform/protobuf.h" namespace tensorflow { namespace boosted_trees { @@ -30,7 +31,7 @@ class DecisionTreeEnsembleResource : public StampedResource { // Constructor. explicit DecisionTreeEnsembleResource() : decision_tree_ensemble_( - proto2::Arena::CreateMessage< + protobuf::Arena::CreateMessage< boosted_trees::trees::DecisionTreeEnsembleConfig>(&arena_)) {} string DebugString() override { @@ -57,14 +58,14 @@ class DecisionTreeEnsembleResource : public StampedResource { // Clear tree ensemle. arena_.Reset(); CHECK_EQ(0, arena_.SpaceAllocated()); - decision_tree_ensemble_ = proto2::Arena::CreateMessage< + decision_tree_ensemble_ = protobuf::Arena::CreateMessage< boosted_trees::trees::DecisionTreeEnsembleConfig>(&arena_); } mutex* get_mutex() { return &mu_; } private: - proto2::Arena arena_; + protobuf::Arena arena_; mutex mu_; boosted_trees::trees::DecisionTreeEnsembleConfig* decision_tree_ensemble_; }; |