message: In the arithmetic optimizer enqueue the fanout of optimized nodes in a
  deterministic order
diff: @@ -1077,7 +1077,12 @@ Status ArithmeticOptimizer::SimplifyArithmeticOps() {
  // consumers of `node` are already redirected to `simplified_tensor`.
  // Re-push the consumers into `nodes_to_simplify` for further
  // optimizations.
  - std::set<NodeDef*> consumers = node_map_->GetOutputs(node->name());
  + const std::set<NodeDef*> outputs = node_map_->GetOutputs(node->name());
  + std::vector<NodeDef*> consumers(outputs.begin(), outputs.end());
  + std::sort(consumers.begin(), consumers.end(),
  + [](const NodeDef* n1, const NodeDef* n2) {
  + return n1->name() < n2->name();
  + });
  for (NodeDef* consumer : consumers) {
  // Update `consumer`'s use of `node` to `input`'s operand.
  for (int i = 0; i < consumer->input_size(); ++i) {
  