message: [Simulator] bug fix for training mode
diff: @@ -37,6 +37,7 @@ void Op::inner_measure_operator_cost(Simulator *sim,
  cost_metrics.forward_time = milliseconds / sim->repeat_times;
  // measure backward time
  + if (sim->computationMode == COMP_MODE_TRAINING) {
  checkCUDA(cudaDeviceSynchronize());
  for (int i = 0; i < sim->warmup_times + sim->repeat_times; i++) {
  if (i == sim->warmup_times) {
  @@ -48,6 +49,9 @@ void Op::inner_measure_operator_cost(Simulator *sim,
  checkCUDA(cudaEventSynchronize(sim->end_event));
  cudaEventElapsedTime(&milliseconds, sim->start_event, sim->end_event);
  cost_metrics.backward_time = milliseconds / sim->repeat_times;
  + } else {
  + cost_metrics.backward_time = 0.0f;
  + }
  // compute memory usage
  // Assume:
  