message: Update tensorflow/core/profiler/convert/xplane_to_memory_profile.cc
diff: @@ -413,8 +413,8 @@ void ProcessActiveAllocations(int64 peak_bytes_profile_step_id,
  allocation->set_special_index(-1);
  }
  allocation->set_num_occurrences(1);
  - const int active_allocs_size = active_allocs.size() - 1;
  - while (i < active_allocs_size &&
  + const int last_alloc = active_allocs.size() - 1;
  + while (i < last_alloc &&
  active_allocs[i] == active_allocs[i + 1]) {
  allocation->set_num_occurrences(allocation->num_occurrences() + 1);
  i++;
  