Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GFile (0.06 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/hash_table_asset_v1.py

    
    def write_vocabulary_file(vocabulary):
      """Write temporary vocab file for module construction."""
      tmpdir = tempfile.mkdtemp()
      vocabulary_file = os.path.join(tmpdir, 'tokens.txt')
      with tf.io.gfile.GFile(vocabulary_file, 'w') as f:
        for entry in vocabulary:
          f.write(entry + '\n')
      return vocabulary_file
    
    
    def test():
    
      vocabulary_file = write_vocabulary_file(['cat', 'is', 'on', 'the', 'mat'])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. RELEASE.md

    answered questions, and were part of inspiring discussions.
    
    # Release 0.7.1
    
    ## Bug Fixes and Other Changes
    
    *   Added gfile.Open and gfile.Copy, used by input_data.py.
    *   Fixed Saver bug when MakeDirs tried to create empty directory.
    *   GPU Pip wheels are built with cuda 7.5 and cudnn-v4, making them required
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top