message: Update tensorflow/compiler/mlir/lite/transforms/optimize.cc
diff: @@ -198,6 +198,7 @@ DenseElementsAttr GetShape(Value output_val) {
  auto output_type = output_val.getType().cast<RankedTensorType>();
  auto shape_vector = output_type.getShape();
  std::vector<int32_t> shape;
  + shape.reserve(shape_vector.size());
  for (auto shape_object : shape_vector) {
  shape.push_back(shape_object);
  }
  