message: [Grappler] Fix comparison between node name and input in function UpdateConsumers
diff: @@ -1740,7 +1740,8 @@ class HoistCWiseUnaryChainsStage : public ArithmeticOptimizerStage {
  const std::set<NodeDef*> consumers = ctx().node_map->GetOutputs(node_name);
  for (NodeDef* consumer : consumers) {
  for (int i = 0; i < consumer->input_size(); ++i) {
  - if (consumer->input(i) == node_name) {
  + if (consumer->input(i) == node_name &&
  + consumer->name() != NodeName(new_input)) {
  consumer->set_input(i, new_input);
  ctx().node_map->UpdateInput(consumer->name(), node_name, new_input);
  }
  @@ -2876,7 +2877,8 @@ class OptimizeMaxOrMinOfMonotonicStage : public ArithmeticOptimizerStage {
  const std::set<NodeDef*> consumers = ctx().node_map->GetOutputs(node_name);
  for (NodeDef* consumer : consumers) {
  for (int i = 0; i < consumer->input_size(); ++i) {
  - if (consumer->input(i) == node_name && consumer->name() != new_input) {
  + if (consumer->input(i) == node_name &&
  + consumer->name() != NodeName(new_input)) {
  consumer->set_input(i, new_input);
  ctx().node_map->UpdateInput(consumer->name(), node_name, new_input);
  }
  