tensorflow_serving/servables/tensorflow/testdata/saved_model_half_plus_two.py
def _write_mlmd(export_dir, mlmd_uuid):
  """Writes an ML Metadata UUID into the assets.extra directory.

  Args:
    export_dir: The export directory for the SavedModel.
    mlmd_uuid: The string to write as the ML Metadata UUID.

  Returns:
    The path to which the MLMD UUID was written.
  """
  assets_extra_directory = os.path.join(export_dir, "assets.extra")
  if not file_io.file_exists(assets_extra_directory):
    file_io.recursive_create_dir(assets_extra_directory)
  path = os.path.join(assets_extra_directory, "mlmd_uuid")
  file_io.write_string_to_file(path, mlmd_uuid)
  return path
Writes an ML Metadata UUID into the assets.extra directory.

  Args:
    export_dir: The export directory for the SavedModel.
    mlmd_uuid: The string to write as the ML Metadata UUID.

  Returns:
    The path to which the MLMD UUID was written.
  
Writes an ML Metadata UUID into the assets.extra directory.
Writes an ML Metadata UUID into the assets . extra directory .
def _write_mlmd(export_dir, mlmd_uuid):
  assets_extra_directory = os.path.join(export_dir, "assets.extra")
  if not file_io.file_exists(assets_extra_directory):
    file_io.recursive_create_dir(assets_extra_directory)
  path = os.path.join(assets_extra_directory, "mlmd_uuid")
  file_io.write_string_to_file(path, mlmd_uuid)
  return path
def _write_mlmd ( export_dir , mlmd_uuid ) : assets_extra_directory = os . path . join ( export_dir , "assets.extra" ) if not file_io . file_exists ( assets_extra_directory ) : file_io . recursive_create_dir ( assets_extra_directory ) path = os . path . join ( assets_extra_directory , "mlmd_uuid" ) file_io . write_string_to_file ( path , mlmd_uuid ) return path
Writes an ML Metadata UUID into the assets.extra directory.
Writes an ML Metadata UUID into the assets . extra directory .
"""Writes an ML Metadata UUID into the assets.extra directory.

  Args:
    export_dir: The export directory for the SavedModel.
    mlmd_uuid: The string to write as the ML Metadata UUID.

  Returns:
    The path to which the MLMD UUID was written.
  """
The path to which the MLMD UUID was written.
The path to which the MLMD UUID was written .
export_dir
The export directory for the SavedModel.
The export directory for the SavedModel .
mlmd_uuid
The string to write as the ML Metadata UUID.
The string to write as the ML Metadata UUID .