Skip to content

Commit

Permalink
Initialize found_unknown_shapes variable.
Browse files Browse the repository at this point in the history
Fixes asan and msan errors in tests.

PiperOrigin-RevId: 158728930
  • Loading branch information
tensorflower-gardener committed Jun 12, 2017
1 parent fe73189 commit b4aa475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/core/grappler/costs/op_level_cost_estimator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b4aa475

Please sign in to comment.