- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for write_vocabulary_file (0.23 sec)
-
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/hash_table_asset_v1.py
# CHECK-NEXT: [[R0:%.*]] = "tf.HashTableV2"() # CHECK-SAME: shared_name = "[[hash_table:.*]]" # CHECK-NEXT: "tf.InitializeTableFromTextFileV2"([[R0]], [[ARG0]]) 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:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:49:35 UTC 2023 - 3.2K bytes - Viewed (0)