message: Removed check that resize is up only.
  Resize uses the same formula for upsampling and downsampling.
diff: @@ -1656,7 +1656,6 @@ class Resize2DOperationParser : public TFLiteOperationParser {
  RETURN_IF_ERROR(CheckInputsOutputs(context, tflite_node,
  /*runtime_inputs=*/1, /*outputs=*/1));
  - RETURN_IF_ERROR(CheckOnlyUpsamplingIsSupported(context, tflite_node));
  bool align_corners;
  RETURN_IF_ERROR(GetAlignCornersValue(tflite_node, &align_corners));
  bool half_pixel_centers;
  @@ -1728,27 +1727,6 @@ class Resize2DOperationParser : public TFLiteOperationParser {
  return absl::OkStatus();
  }
  - absl::Status CheckOnlyUpsamplingIsSupported(const TfLiteContext* context,
  - const TfLiteNode* tflite_node) {
  - const auto* input = context->tensors + tflite_node->inputs->data[0];
  - const auto* output = context->tensors + tflite_node->outputs->data[0];
  -
  - if (!input->dims || input->dims->size != 4) {
  - return absl::InvalidArgumentError("input.dims.size != 4");
  - }
  - if (!output->dims || output->dims->size != 4) {
  - return absl::InvalidArgumentError("output.dims.size != 4");
  - }
  - if (output->dims->data[1] < input->dims->data[1] ||
  - output->dims->data[2] < input->dims->data[2]) {
  - return absl::InvalidArgumentError(absl::StrCat(
  - "Only upsampling is supported, received output h,w = ",
  - output->dims->data[1], ",", output->dims->data[2],
  - " input h,w = ", input->dims->data[1], ",", input->dims->data[2]));
  - }
  - return absl::OkStatus();
  - }
  -
  SamplingType sampling_type_ = SamplingType::UNKNOWN;
  };
  