aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework
diff options
context:
space:
mode:
authorGravatar Jiri Simsa <jsimsa@google.com>2018-09-17 20:28:59 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-17 20:32:47 -0700
commiteeb477cf661a16ee39e0621fd225d1f15859ffc8 (patch)
tree3cb4aea1f07a03639d2a5be55e7ec5ab5b7390fa /tensorflow/core/framework
parent0b7125d3c5e7128470a7a74cf8a3543eab39c2d8 (diff)
[tf.data] Fixing an error in the optimization loop.
PiperOrigin-RevId: 213386401
Diffstat (limited to 'tensorflow/core/framework')
-rw-r--r--tensorflow/core/framework/model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/framework/model.cc b/tensorflow/core/framework/model.cc
index b3fe357ea1..112298c344 100644
--- a/tensorflow/core/framework/model.cc
+++ b/tensorflow/core/framework/model.cc
@@ -322,7 +322,7 @@ void Model::Optimize(int64 cpu_budget) {
}
tunable->value--;
}
- if (best_tunable) {
+ if (!best_tunable) {
// NOTE: This can happen because we are performing the optimization
// while the model data is changing. If this becomes an issue, we should
// look into performing the optimization using a model snapshot.