message: [lite] Add --saved_model_tag_set and --saved_model_signature_key to tflite_convert command line tool in 2.x API
diff: @@ -247,7 +247,10 @@ def _convert_tf2_model(flags):
  """
  # Load the model.
  if flags.saved_model_dir:
  - converter = lite.TFLiteConverterV2.from_saved_model(flags.saved_model_dir)
  + converter = lite.TFLiteConverterV2.from_saved_model(
  + flags.saved_model_dir,
  + signature_keys=_parse_array(flags.saved_model_signature_key),
  + tags=_parse_set(flags.saved_model_tag_set))
  elif flags.keras_model_file:
  model = keras_deps.get_load_model_function()(flags.keras_model_file)
  converter = lite.TFLiteConverterV2.from_keras_model(model)
  @@ -557,6 +560,18 @@ def _get_tf2_flags(parser):
  "--keras_model_file",
  type=str,
  help="Full filepath of HDF5 file containing tf.Keras model.")
  + # SavedModel related flags.
  + parser.add_argument(
  + "--saved_model_tag_set",
  + type=str,
  + help=("Comma-separated set of tags identifying the MetaGraphDef within "
  + "the SavedModel to analyze. All tags must be present. In order to "
  + "pass in an empty tag set, pass in \"\". (default \"serve\")"))
  + parser.add_argument(
  + "--saved_model_signature_key",
  + type=str,
  + help=("Key identifying the SignatureDef containing inputs and outputs. "
  + "(default DEFAULT_SERVING_SIGNATURE_DEF_KEY)"))
  # Enables 1.X converter in 2.X.
  parser.add_argument(
  