tensorflow_serving/servables/tensorflow/testdata/saved_model_half_plus_two.py
def _write_assets(assets_directory, assets_filename):
  """Writes asset files to be used with SavedModel for half plus two.

  Args:
    assets_directory: The directory to which the assets should be written.
    assets_filename: Name of the file to which the asset contents should be
        written.

  Returns:
    The path to which the assets file was written.
  """
  if not file_io.file_exists(assets_directory):
    file_io.recursive_create_dir(assets_directory)

  path = os.path.join(
      tf.compat.as_bytes(assets_directory), tf.compat.as_bytes(assets_filename))
  file_io.write_string_to_file(path, "asset-file-contents")
  return path
Writes asset files to be used with SavedModel for half plus two.

  Args:
    assets_directory: The directory to which the assets should be written.
    assets_filename: Name of the file to which the asset contents should be
        written.

  Returns:
    The path to which the assets file was written.
  
Writes asset files to be used with SavedModel for half plus two.
Writes asset files to be used with SavedModel for half plus two .
def _write_assets(assets_directory, assets_filename):
  if not file_io.file_exists(assets_directory):
    file_io.recursive_create_dir(assets_directory)
  path = os.path.join(
      tf.compat.as_bytes(assets_directory), tf.compat.as_bytes(assets_filename))
  file_io.write_string_to_file(path, "asset-file-contents")
  return path
def _write_assets ( assets_directory , assets_filename ) : if not file_io . file_exists ( assets_directory ) : file_io . recursive_create_dir ( assets_directory ) path = os . path . join ( tf . compat . as_bytes ( assets_directory ) , tf . compat . as_bytes ( assets_filename ) ) file_io . write_string_to_file ( path , "asset-file-contents" ) return path
Writes asset files to be used with SavedModel for half plus two.
Writes asset files to be used with SavedModel for half plus two .
"""Writes asset files to be used with SavedModel for half plus two.

  Args:
    assets_directory: The directory to which the assets should be written.
    assets_filename: Name of the file to which the asset contents should be
        written.

  Returns:
    The path to which the assets file was written.
  """
The path to which the assets file was written.
The path to which the assets file was written .
assets_directory
The directory to which the assets should be written.
The directory to which the assets should be written .
assets_filename
Name of the file to which the asset contents should be
written.
Name of the file to which the asset contents should be written .