Skip to content

Commit

Permalink
Set inaccurate field when it should be false.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 158589176
  • Loading branch information
Yao Zhang authored and tensorflower-gardener committed Jun 10, 2017
1 parent 61a46ce commit 88d4076
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tensorflow/core/grappler/costs/op_level_cost_estimator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,7 @@ Costs OpLevelCostEstimator::PredictCwiseOp(const OpInfo& op_features) const {
op_cost = it->second;
}
Costs costs = PredictOpCountBasedCost(op_count * op_cost, op_features);
if (found_unknown_shapes) {
costs.inaccurate = true;
}
costs.inaccurate = found_unknown_shapes;
return costs;
}

Expand Down

0 comments on commit 88d4076

Please sign in to comment.