aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/grappler/costs/cost_estimator.h
diff options
context:
space:
mode:
authorGravatar Yao Zhang <yaozhang@google.com>2017-04-28 16:36:42 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-28 17:46:40 -0700
commitc383ff9040ee05c648ba5d0e9c65c68b5dd30159 (patch)
tree74fe43a04d365f64e4e0c356f0bfde9f47968c1d /tensorflow/core/grappler/costs/cost_estimator.h
parent4f8cc7cb41a80905ec5ceef7536480c18d3c6bec (diff)
Add bool field inaccurate to Costs.
Change: 154602604
Diffstat (limited to 'tensorflow/core/grappler/costs/cost_estimator.h')
-rw-r--r--tensorflow/core/grappler/costs/cost_estimator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/core/grappler/costs/cost_estimator.h b/tensorflow/core/grappler/costs/cost_estimator.h
index 093b7e29dc..27975458d4 100644
--- a/tensorflow/core/grappler/costs/cost_estimator.h
+++ b/tensorflow/core/grappler/costs/cost_estimator.h
@@ -90,6 +90,8 @@ struct Costs {
int64 max_per_op_buffers; // Sum of all buffers used by the ops.
int64 max_per_op_streaming; // Ignore largest input buffer, assuming it
// streams from main memory.
+ // If the time estimation is inaccurate.
+ bool inaccurate = false;
};
inline std::ostream& operator<<(std::ostream& os, const Costs::MicroSeconds d) {