Home
last modified time | relevance | path

Searched refs:vocabulary_file (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/contrib/lookup/
Dlookup_ops_test.py299 vocabulary_file = os.path.join(self.get_temp_dir(), basename)
300 with open(vocabulary_file, "w") as f:
302 return vocabulary_file
305 vocabulary_file = self._createVocabFile("f2i_vocab1.txt")
308 vocabulary_file=vocabulary_file, num_oov_buckets=1)
316 vocabulary_file = self._createVocabFile("f2i_vocab1.txt")
318 vocabulary_file = constant_op.constant(vocabulary_file)
320 vocabulary_file=vocabulary_file, num_oov_buckets=1)
330 vocabulary_file = self._createVocabFile("f2i_vocab1.txt")
334 vocabulary_file=vocabulary_placeholder, num_oov_buckets=1)
[all …]
Dlookup_ops.py47 def string_to_index_table_from_file(vocabulary_file=None, argument
54 vocabulary_file, num_oov_buckets, vocab_size, default_value, hasher_spec,
/external/tensorflow/tensorflow/python/kernel_tests/
Dlookup_ops_test.py393 vocabulary_file = os.path.join(self.get_temp_dir(), basename)
394 with open(vocabulary_file, "w") as f:
396 return vocabulary_file
399 vocabulary_file = self._createVocabFile("one_column_1.txt")
402 vocabulary_file, dtypes.string, lookup_ops.TextFileIndex.WHOLE_LINE,
414 vocabulary_file = self._createVocabFile(
420 vocabulary_file, dtypes.int64, lookup_ops.TextFileIndex.WHOLE_LINE,
433 vocabulary_file = self._createVocabFile("one_column_2.txt")
440 vocabulary_file, dtypes.int64, key_index, dtypes.string, value_index)
452 vocabulary_file = os.path.join(self.get_temp_dir(), "three_columns.txt")
[all …]
/external/tensorflow/tensorflow/examples/saved_model/integration_tests/
Dexport_simple_text_embedding.py40 vocabulary_file = os.path.join(tmpdir, "tokens.txt")
41 with tf.io.gfile.GFile(vocabulary_file, "w") as f:
44 return vocabulary_file
61 vocabulary_file=self._vocabulary_file,
/external/tensorflow/tensorflow/python/training/
Dwarm_starting_util_test.py597 "sc_vocab", vocabulary_file=vocab_path, vocabulary_size=4)
633 "sc_vocab", vocabulary_file=vocab_path, vocabulary_size=4)
678 "sc_vocab", vocabulary_file=current_vocab_path, vocabulary_size=2)
700 new_vocab=sc_vocab.vocabulary_file,
761 "sc_vocab", vocabulary_file=vocab_path, vocabulary_size=4)
820 new_vocab=sc_vocab.vocabulary_file,
854 "sc_vocab", vocabulary_file=new_vocab_path, vocabulary_size=6)
881 new_vocab=sc_vocab.vocabulary_file,
922 "sc_vocab", vocabulary_file=new_vocab_path, vocabulary_size=6)
944 new_vocab=sc_vocab.vocabulary_file,
[all …]
/external/tensorflow/tensorflow/python/ops/
Dlookup_ops.py1155 def index_table_from_file(vocabulary_file=None, argument
1236 if vocabulary_file is None or (
1237 isinstance(vocabulary_file, six.string_types) and not vocabulary_file):
1243 vocab_file_value = vocabulary_file
1244 if isinstance(vocabulary_file, ops.Tensor):
1245 vocab_file_value = tensor_util.constant_value(vocabulary_file) or "?"
1255 vocabulary_file,
1371 def index_to_string_table_from_file(vocabulary_file, argument
1441 if vocabulary_file is None or (
1442 isinstance(vocabulary_file, six.string_types) and not vocabulary_file):
[all …]
/external/tensorflow/tensorflow/python/feature_column/
Dsequence_feature_column.py297 key, vocabulary_file, vocabulary_size=None, num_oov_buckets=0,
353 vocabulary_file=vocabulary_file,
Dfeature_column.py1143 vocabulary_file,
1226 if not vocabulary_file:
1230 if not gfile.Exists(vocabulary_file):
1233 with gfile.GFile(vocabulary_file) as f:
1237 'in the vocabulary_file %s.', vocabulary_size, key, vocabulary_file)
1254 vocabulary_file=vocabulary_file,
2735 vocabulary_file=self.vocabulary_file,
Dfeature_column_test.py3381 key='aaa', vocabulary_file='path_to_file', vocabulary_size=3)
3393 key=('aaa',), vocabulary_file='path_to_file', vocabulary_size=3)
3399 vocabulary_file='path_to_file',
3412 vocabulary_file='path_to_file',
3426 key='aaa', vocabulary_file=None, vocabulary_size=3)
3431 key='aaa', vocabulary_file='', vocabulary_size=3)
3436 key='aaa', vocabulary_file='file_does_not_exist', vocabulary_size=10)
3450 vocabulary_file=self._wire_vocabulary_file_name,
3455 vocabulary_file=self._wire_vocabulary_file_name,
3462 vocabulary_file=self._wire_vocabulary_file_name,
[all …]
Dfeature_column_v2.py1484 vocabulary_file,
1568 key, vocabulary_file, vocabulary_size,
1575 vocabulary_file,
1658 if not vocabulary_file:
1662 if not gfile.Exists(vocabulary_file):
1665 with gfile.GFile(vocabulary_file) as f:
1669 'in the vocabulary_file %s.', vocabulary_size, key, vocabulary_file)
1686 vocabulary_file=vocabulary_file,
3567 vocabulary_file=self.vocabulary_file,
Dfeature_column_v2_test.py4517 key='aaa', vocabulary_file='path_to_file', vocabulary_size=3)
4529 key=('aaa',), vocabulary_file='path_to_file', vocabulary_size=3)
4535 vocabulary_file='path_to_file',
4548 vocabulary_file='path_to_file',
4562 key='aaa', vocabulary_file=None, vocabulary_size=3)
4567 key='aaa', vocabulary_file='', vocabulary_size=3)
4572 key='aaa', vocabulary_file='file_does_not_exist', vocabulary_size=10)
4588 vocabulary_file=self._wire_vocabulary_file_name,
4593 vocabulary_file=self._wire_vocabulary_file_name,
4600 vocabulary_file=self._wire_vocabulary_file_name,
[all …]
Dsequence_feature_column_test.py835 vocabulary_file=self._wire_vocabulary_file_name,
857 vocabulary_file=self._wire_vocabulary_file_name,
/external/tensorflow/tensorflow/contrib/feature_column/python/feature_column/
Dsequence_feature_column.py272 key, vocabulary_file, vocabulary_size=None, num_oov_buckets=0,
326 vocabulary_file=vocabulary_file,
Dsequence_feature_column_test.py787 vocabulary_file=self._wire_vocabulary_file_name,
807 vocabulary_file=self._wire_vocabulary_file_name,
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.feature_column.pbtxt17 …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/
Dtensorflow.feature_column.pbtxt17 …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/contrib/layers/python/layers/
Dfeature_column_ops_test.py329 vocabulary_file = os.path.join(self.get_temp_dir(), "movies.txt")
330 with open(vocabulary_file, "w") as f:
333 "wire", vocabulary_file, vocab_size=3)
353 vocabulary_file = os.path.join(self.get_temp_dir(), "movies.txt")
354 with open(vocabulary_file, "w") as f:
357 "wire", vocabulary_file, vocab_size=3)
375 vocabulary_file = os.path.join(self.get_temp_dir(), "courses.txt")
376 with open(vocabulary_file, "w") as f:
379 "wire", vocabulary_file, vocab_size=3, dtype=dtypes.int64)
400 vocabulary_file = os.path.join(self.get_temp_dir(), "courses.txt")
[all …]
Dfeature_column_test.py106 "bbb", vocabulary_file="a_file", vocab_size=454)
109 self.assertEqual(b.lookup_config.vocabulary_file, "a_file")
113 fc.sparse_column_with_vocabulary_file("bbb", vocabulary_file="somefile")
116 "bbb", vocabulary_file="a_file", vocab_size=454, dtype=dtypes.int64)
121 "bbb", vocabulary_file="a_file", vocab_size=454, dtype=dtypes.float32)
136 self.assertEqual(weighted_ids.lookup_config.vocabulary_file, "a_file")
839 "a", vocabulary_file="path_to_file", vocab_size=3)
845 vocabulary_file="path_to_file",
Dfeature_column.py380 if (lookup_config and lookup_config.vocabulary_file and
712 vocabulary_file=self.lookup_config.vocabulary_file,
721 vocabulary_file,
765 vocabulary_file=vocabulary_file,
2696 vocabulary_file=None, argument
2702 return super(_SparseIdLookupConfig, cls).__new__(cls, vocabulary_file, keys,