diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-06-12 10:20:30 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-12 10:23:46 -0700 |
commit | b4aa475f0375ea3d007fd4c3c95d9e1971a13bfd (patch) | |
tree | 7a98fb742834117452d9a31361830abc59b3d113 /tensorflow/core/grappler/costs/op_level_cost_estimator.cc | |
parent | fe731897ebeb118ba7fe62c4da7df5c407866b67 (diff) |
Initialize found_unknown_shapes variable.
Fixes asan and msan errors in tests.
PiperOrigin-RevId: 158728930
Diffstat (limited to 'tensorflow/core/grappler/costs/op_level_cost_estimator.cc')
-rw-r--r-- | tensorflow/core/grappler/costs/op_level_cost_estimator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/grappler/costs/op_level_cost_estimator.cc b/tensorflow/core/grappler/costs/op_level_cost_estimator.cc index aa3a392b31..2c2549dcd3 100644 --- a/tensorflow/core/grappler/costs/op_level_cost_estimator.cc +++ b/tensorflow/core/grappler/costs/op_level_cost_estimator.cc @@ -322,7 +322,7 @@ std::pair<double, double> OpLevelCostEstimator::GetDeviceInfo( } Costs OpLevelCostEstimator::PredictCwiseOp(const OpInfo& op_features) const { - bool found_unknown_shapes; + bool found_unknown_shapes = false; // For unary or binary element-wise operations, op count is the element count // of any input. We use the count for the largest input here to be more robust // in case that the shape is unknown or partially known for other input. |