message: Move version management from operation name to attributes for LandmarksToTransformMatrix operation.
diff: @@ -2390,6 +2390,7 @@ class Landmarks2TransformMatrixOperationParser : public TFLiteOperationParser {
  absl::Status IsSupported(const TfLiteContext* context,
  const TfLiteNode* tflite_node,
  const TfLiteRegistration* registration) final {
  + RETURN_IF_ERROR(CheckMaxSupportedOpVersion(registration, 2));
  return CheckInputsOutputs(context, tflite_node, /*runtime_inputs=*/1,
  /*outputs=*/1);
  }
  @@ -2415,37 +2416,6 @@ class Landmarks2TransformMatrixOperationParser : public TFLiteOperationParser {
  }
  };
  -class Landmarks2TransformMatrixV2OperationParser
  - : public TFLiteOperationParser {
  - public:
  - absl::Status IsSupported(const TfLiteContext* context,
  - const TfLiteNode* tflite_node,
  - const TfLiteRegistration* registration) final {
  - return CheckInputsOutputs(context, tflite_node, /*runtime_inputs=*/1,
  - /*outputs=*/1);
  - }
  -
  - absl::Status Parse(const TfLiteNode* tflite_node,
  - const TfLiteRegistration* registration,
  - GraphFloat32* graph, ObjectReader* reader) final {
  - Node* node = graph->NewNode();
  - RETURN_IF_ERROR(reader->AddInput(node, 0)); // landmarks
  - RETURN_IF_ERROR(reader->AddOutputs(node)); // transform matrix
  -
  - const std::string op_name = "landmarks_to_transform_matrix_v2";
  - node->operation.type = op_name;
  - BHWC output_shape;
  - RETURN_IF_ERROR(ParseCustomAttributes(
  - op_name, registration->version, tflite_node->custom_initial_data,
  - tflite_node->custom_initial_data_size, &(node->operation.attributes),
  - &output_shape));
  -
  - auto output_value = graph->FindOutputs(node->id)[0];
  - output_value->tensor.shape = output_shape;
  - return absl::OkStatus();
  - }
  -};
  -
  class AlignmentPointsToTransformMatrixOperationParser
  : public TFLiteOperationParser {
  public:
  @@ -2689,12 +2659,10 @@ std::unique_ptr<TFLiteOperationParser> NewOperationParser(
  if (custom_name == "TransformLandmarksV2") {
  return std::make_unique<TransformLandmarksV2OperationParser>();
  }
  - if (custom_name == "Landmarks2TransformMatrix") {
  + if (custom_name == "Landmarks2TransformMatrix" ||
  + custom_name == "Landmarks2TransformMatrixV2") {
  return std::make_unique<Landmarks2TransformMatrixOperationParser>();
  }
  - if (custom_name == "Landmarks2TransformMatrixV2") {
  - return std::make_unique<Landmarks2TransformMatrixV2OperationParser>();
  - }
  if (custom_name == "AlignmentPointsToTransformMatrix") {
  return std::make_unique<
  AlignmentPointsToTransformMatrixOperationParser>();
  