/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/ |
D | hash_table_asset_v1.py | 44 vocabulary_file = os.path.join(tmpdir, 'tokens.txt') 45 with tf.io.gfile.GFile(vocabulary_file, 'w') as f: 48 return vocabulary_file 53 vocabulary_file = write_vocabulary_file(['cat', 'is', 'on', 'the', 'mat']) 55 vocabulary_file, tf.string, tf.lookup.TextFileIndex.WHOLE_LINE, tf.int64, 61 vocabulary_file, tf.string, name='asset_filepath')
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | lookup_ops_test.py | 551 vocabulary_file = os.path.join(self.get_temp_dir(), basename) 552 with open(vocabulary_file, "w") as f: 554 return vocabulary_file 579 vocabulary_file = self._createVocabFile("test.txt", ("one", "two", "three")) 580 ds = reader_ops.TextLineDataset(vocabulary_file) 639 vocabulary_file = os.path.join(self.get_temp_dir(), basename) 640 with open(vocabulary_file, "w") as f: 642 return vocabulary_file 645 vocabulary_file = self._createVocabFile("one_column_1.txt") 648 vocabulary_file, dtypes.string, lookup_ops.TextFileIndex.WHOLE_LINE, [all …]
|
/external/tensorflow/tensorflow/python/training/ |
D | warm_starting_util_test.py | 599 "sc_vocab", vocabulary_file=vocab_path, vocabulary_size=4) 635 "sc_vocab", vocabulary_file=vocab_path, vocabulary_size=4) 680 "sc_vocab", vocabulary_file=current_vocab_path, vocabulary_size=2) 702 new_vocab=sc_vocab.vocabulary_file, 763 "sc_vocab", vocabulary_file=vocab_path, vocabulary_size=4) 822 new_vocab=sc_vocab.vocabulary_file, 856 "sc_vocab", vocabulary_file=new_vocab_path, vocabulary_size=6) 883 new_vocab=sc_vocab.vocabulary_file, 924 "sc_vocab", vocabulary_file=new_vocab_path, vocabulary_size=6) 946 new_vocab=sc_vocab.vocabulary_file, [all …]
|
/external/tensorflow/tensorflow/python/feature_column/ |
D | sequence_feature_column.py | 187 key, vocabulary_file, vocabulary_size=None, num_oov_buckets=0, 243 vocabulary_file=vocabulary_file,
|
D | feature_column.py | 1164 vocabulary_file, 1247 if not vocabulary_file: 1251 if not gfile.Exists(vocabulary_file): 1254 with gfile.GFile(vocabulary_file) as f: 1258 'in the vocabulary_file %s.', vocabulary_size, key, vocabulary_file) 1275 vocabulary_file=vocabulary_file, 2854 vocabulary_file=self.vocabulary_file,
|
D | feature_column_v2_test.py | 3017 key='aaa', vocabulary_file='path_to_file', vocabulary_size=3) 3028 key='aaa', vocabulary_file=self._unicode_vocabulary_file_name) 3039 key=('aaa',), vocabulary_file='path_to_file', vocabulary_size=3) 3044 vocabulary_file='path_to_file', 3056 vocabulary_file='path_to_file', 3070 key='aaa', vocabulary_file=None, vocabulary_size=3) 3075 key='aaa', vocabulary_file='', vocabulary_size=3) 3079 key='aaa', vocabulary_file='file_does_not_exist', vocabulary_size=10) 3095 vocabulary_file=self._wire_vocabulary_file_name, 3100 vocabulary_file=self._wire_vocabulary_file_name, [all …]
|
D | feature_column_v2.py | 1198 vocabulary_file, 1297 key, vocabulary_file, vocabulary_size, 1304 vocabulary_file, 1387 if not vocabulary_file: 1391 if not gfile.Exists(vocabulary_file): 1394 with gfile.GFile(vocabulary_file, mode='rb') as f: 1398 'in the vocabulary_file %s.', vocabulary_size, key, vocabulary_file) 1415 vocabulary_file=vocabulary_file, 3458 vocabulary_file=self.vocabulary_file,
|
D | feature_column_test.py | 3349 key='aaa', vocabulary_file='path_to_file', vocabulary_size=3) 3361 key=('aaa',), vocabulary_file='path_to_file', vocabulary_size=3) 3366 vocabulary_file='path_to_file', 3378 vocabulary_file='path_to_file', 3392 key='aaa', vocabulary_file=None, vocabulary_size=3) 3397 key='aaa', vocabulary_file='', vocabulary_size=3) 3402 key='aaa', vocabulary_file='file_does_not_exist', vocabulary_size=10) 3416 vocabulary_file=self._wire_vocabulary_file_name, 3421 vocabulary_file=self._wire_vocabulary_file_name, 3428 vocabulary_file=self._wire_vocabulary_file_name, [all …]
|
D | sequence_feature_column_test.py | 302 vocabulary_file=self._wire_vocabulary_file_name, 324 vocabulary_file=self._wire_vocabulary_file_name,
|
/external/tensorflow/tensorflow/python/ops/ |
D | lookup_ops.py | 1351 def index_table_from_file(vocabulary_file=None, argument 1433 if vocabulary_file is None or (isinstance(vocabulary_file, six.string_types) 1434 and not vocabulary_file): 1441 vocab_file_value = vocabulary_file 1442 if isinstance(vocabulary_file, ops.Tensor): 1443 vocab_file_value = tensor_util.constant_value(vocabulary_file) or "?" 1453 vocabulary_file, 1571 def index_to_string_table_from_file(vocabulary_file, argument 1642 if vocabulary_file is None or (isinstance(vocabulary_file, six.string_types) 1643 and not vocabulary_file): [all …]
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.feature_column.pbtxt | 17 …argspec: "args=[\'key\', \'vocabulary_file\', \'vocabulary_size\', \'dtype\', \'default_value\', \… 53 …argspec: "args=[\'key\', \'vocabulary_file\', \'vocabulary_size\', \'num_oov_buckets\', \'default_…
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.feature_column.pbtxt | 17 …argspec: "args=[\'key\', \'vocabulary_file\', \'vocabulary_size\', \'num_oov_buckets\', \'default_… 61 …argspec: "args=[\'key\', \'vocabulary_file\', \'vocabulary_size\', \'num_oov_buckets\', \'default_…
|
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/ |
D | table_utils_test.py | 53 vocabulary_file = os.path.join(tmpdir, "tmp_vocab.txt") 56 with open(vocabulary_file, "w") as f: 59 with open(vocabulary_file, "w") as f: 65 vocabulary_file,
|