diff options
author | Benoit Steiner <bsteiner@google.com> | 2018-01-25 16:45:04 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-01-25 16:48:53 -0800 |
commit | 1b44a76921295fa5dfa7271f3a486b0ceaa8b3e1 (patch) | |
tree | 77826dd38be8a2a52745741fc5df7c8c4fc3439d | |
parent | 2564d5e90e12b4ec3dbd01b442b42a2a8ac7f8f6 (diff) |
Deleted unused data fields
PiperOrigin-RevId: 183312596
-rw-r--r-- | tensorflow/core/grappler/costs/cost_estimator.h | 3 | ||||
-rw-r--r-- | tensorflow/core/grappler/costs/measuring_cost_estimator.cc | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/tensorflow/core/grappler/costs/cost_estimator.h b/tensorflow/core/grappler/costs/cost_estimator.h index 852e69737b..b7eaf8dc63 100644 --- a/tensorflow/core/grappler/costs/cost_estimator.h +++ b/tensorflow/core/grappler/costs/cost_estimator.h @@ -85,10 +85,7 @@ struct Costs { typedef NanoSeconds Duration; // Overall cost of running the graph; latency. - // Mean Duration execution_time; - Duration min_execution_time; - Duration max_execution_time; // Computation cost of running the graph. Duration compute_time; diff --git a/tensorflow/core/grappler/costs/measuring_cost_estimator.cc b/tensorflow/core/grappler/costs/measuring_cost_estimator.cc index 8fd1801863..ea4320687a 100644 --- a/tensorflow/core/grappler/costs/measuring_cost_estimator.cc +++ b/tensorflow/core/grappler/costs/measuring_cost_estimator.cc @@ -117,8 +117,6 @@ Status MeasuringCostEstimator::PredictCosts(const GraphDef& optimized_graph, LOG(ERROR) << "Failed to measure graph performance: " << status.error_message(); costs->execution_time = Costs::Duration::max(); - costs->max_execution_time = Costs::Duration::max(); - costs->min_execution_time = 0; return status; } @@ -126,8 +124,6 @@ Status MeasuringCostEstimator::PredictCosts(const GraphDef& optimized_graph, // to filter out outliers. RobustStats stats(times); costs->execution_time = Costs::Duration(stats.mean()); - costs->max_execution_time = Costs::Duration(stats.hi()); - costs->min_execution_time = Costs::Duration(stats.lo()); return Status::OK(); } |