message: Enable algebraic optimizations for operations with neutral and absorbing elements by default - not only when feeds are absent or in aggressive mode.
diff: @@ -1443,15 +1443,14 @@ Status ConstantFolding::SimplifyGraph(GraphDef* output,
  graph_modified_ = true;
  continue;
  }
  - const bool safe_to_use_shapes =
  - use_shape_info && (feed_nodes_.empty() || is_aggressive);
  +
  const bool is_mul = IsMul(*node);
  const bool is_matmul = IsMatMul(*node);
  const bool is_add = IsAdd(*node) || IsBiasAdd(*node);
  const bool is_sub = IsSub(*node);
  const bool is_any_div = IsAnyDiv(*node);
  // Simplify arithmetic operations with ones or zeros.
  - if (safe_to_use_shapes &&
  + if (use_shape_info &&
  (is_mul || is_matmul || is_add || is_sub || is_any_div) &&
  properties.HasInputProperties(node->name()) &&
  properties.HasOutputProperties(node->name())) {
  