Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for file_exists_v2 (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py

      Also creates the parent & intermediate directories.
    
      Args:
        output_directory: Output directory.
        overwrite: Where to clean the output directory if exists.
      """
      if overwrite and file_io.file_exists_v2(output_directory):
        logging.info(
            'Deleting existing output directory: %s .',
            output_directory,
        )
        file_io.delete_recursively_v2(output_directory)
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

        dst_path: Destination saved model directory. This directory must exist.
      """
      for assets_dir_name in [_ASSETS_DIR, _ASSETS_EXTRA_DIR]:
        src_assets_path = file_io.join(src_path, assets_dir_name)
        if not file_io.file_exists_v2(src_assets_path):
          # Do nothing if the source assets path does not exist.
          continue
    
        dst_assets_path = file_io.join(dst_path, assets_dir_name)
        file_io.create_dir_v2(dst_assets_path)
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

          function.
    
      Raises:
        FileExistsError: Iff `output_dir` is not empty and `overwrite` is false.
      """
      dir_not_empty = (
          output_dir is not None
          and file_io.file_exists_v2(output_dir)
          and file_io.list_directory_v2(output_dir)
      )
    
      if dir_not_empty and not overwrite:
        raise FileExistsError(
            f'Output directory already exists: {output_dir} . '
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

            representative_dataset=representative_dataset,
        )
        self.assertIsNotNone(converted_model)
        # Check if the assets.extra file exists in the output model.
        self.assertTrue(
            file_io.file_exists_v2(
                os.path.join(self._output_saved_model_path, asset_filename)
            )
        )
    
      # tf.data.Dataset is as an Iterable (thus can be used as representative
      # dataset) only in TF2 (eager mode).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
Back to top