/external/tensorflow/tensorflow/core/kernels/ |
D | candidate_sampler_ops.cc | 156 string vocab_file; in FixedUnigramCandidateSamplerOp() local 157 OP_REQUIRES_OK(context, context->GetAttr("vocab_file", &vocab_file)); in FixedUnigramCandidateSamplerOp() 161 context, !vocab_file.empty() || !unigrams.empty(), in FixedUnigramCandidateSamplerOp() 163 OP_REQUIRES(context, vocab_file.empty() || unigrams.empty(), in FixedUnigramCandidateSamplerOp() 176 if (!vocab_file.empty()) { in FixedUnigramCandidateSamplerOp() 177 set_sampler(new FixedUnigramSampler(context->env(), range_max, vocab_file, in FixedUnigramCandidateSamplerOp()
|
D | range_sampler.cc | 233 const string& vocab_file, in FixedUnigramSampler() argument 243 TF_CHECK_OK(LoadFromFile(env, vocab_file, distortion)); in FixedUnigramSampler() 281 Status FixedUnigramSampler::LoadFromFile(Env* env, const string& vocab_file, in LoadFromFile() argument 284 TF_RETURN_IF_ERROR(env->NewRandomAccessFile(vocab_file, &file)); in LoadFromFile()
|
D | range_sampler.h | 215 FixedUnigramSampler(Env* env, int64 range, const string& vocab_file, 245 Status LoadFromFile(Env* env, const string& vocab_file, float distortion);
|
D | lookup_util.cc | 31 Status GetNumLinesInTextFile(Env* env, const string& vocab_file, in GetNumLinesInTextFile() argument 34 TF_RETURN_IF_ERROR(env->NewRandomAccessFile(vocab_file, &file)); in GetNumLinesInTextFile()
|
/external/tensorflow/tensorflow/contrib/lookup/ |
D | lookup_ops_test.py | 1049 vocab_file = self._createVocabFile("feat_to_id_1.txt") 1055 vocab_file, vocab_size=vocab_size), 1067 vocab_file = self._createVocabFile("feat_to_id_2.txt") 1073 vocab_file, vocab_size=vocab_size), 1084 vocab_file = self._createVocabFile( 1091 vocab_file, vocab_size=vocab_size, key_dtype=dtypes.int64), 1110 vocab_file = self._createVocabFile("feat_to_id_1.txt") 1118 vocab_file, vocab_size=vocab_size), 1131 vocab_file = self._createVocabFile("feat_to_id_2.txt", ("42", "1", "-1000")) 1139 vocab_file, vocab_size=vocab_size, key_dtype=dtypes.int64), [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | candidate_sampling_ops.py | 221 vocab_file='', argument 302 vocab_file=vocab_file, distortion=distortion,
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | lookup_ops_test.py | 667 vocab_file = self._createVocabFile("feat_to_id_1.txt") 672 vocab_file, vocab_size=vocab_size) 686 vocab_file = self._createVocabFile("feat_to_id_2.txt") 691 vocab_file, vocab_size=vocab_size) 703 vocab_file = self._createVocabFile( 709 vocab_file, vocab_size=vocab_size, key_dtype=dtypes.int64) 729 vocab_file = self._createVocabFile("feat_to_id_1.txt") 733 vocab_file, vocab_size=vocab_size), oov_buckets) 744 vocab_file = self._createVocabFile("feat_to_id_2.txt", ("42", "1", "-1000")) 749 vocab_file, vocab_size=vocab_size, key_dtype=dtypes.int64), [all …]
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_FixedUnigramCandidateSampler.pbtxt | 61 name: "vocab_file" 66 corresponding to the count or relative probability. Exactly one of vocab_file 110 order. Exactly one of vocab_file and unigrams should be passed to this op.
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.random.pbtxt | 17 …classes\', \'num_true\', \'num_sampled\', \'unique\', \'range_max\', \'vocab_file\', \'distortion\…
|
D | tensorflow.nn.pbtxt | 161 …classes\', \'num_true\', \'num_sampled\', \'unique\', \'range_max\', \'vocab_file\', \'distortion\…
|
D | tensorflow.raw_ops.pbtxt | 1305 …classes\', \'num_true\', \'num_sampled\', \'unique\', \'range_max\', \'vocab_file\', \'distortion\…
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.random.pbtxt | 17 …classes\', \'num_true\', \'num_sampled\', \'unique\', \'range_max\', \'vocab_file\', \'distortion\…
|
D | tensorflow.nn.pbtxt | 201 …classes\', \'num_true\', \'num_sampled\', \'unique\', \'range_max\', \'vocab_file\', \'distortion\…
|
D | tensorflow.raw_ops.pbtxt | 1305 …classes\', \'num_true\', \'num_sampled\', \'unique\', \'range_max\', \'vocab_file\', \'distortion\…
|
/external/tensorflow/tensorflow/contrib/feature_column/python/feature_column/ |
D | sequence_feature_column_test.py | 749 vocab_file = os.path.join(self.get_temp_dir(), file_name) 750 with open(vocab_file, 'w') as f: 752 return vocab_file
|
/external/tensorflow/tensorflow/python/feature_column/ |
D | sequence_feature_column_test.py | 797 vocab_file = os.path.join(self.get_temp_dir(), file_name) 798 with open(vocab_file, 'w') as f: 800 return vocab_file
|
/external/tensorflow/tensorflow/python/training/ |
D | warm_starting_util_test.py | 46 vocab_file = os.path.join(self.get_temp_dir(), file_name) 47 with open(vocab_file, "w") as f: 49 return vocab_file
|
/external/tensorflow/tensorflow/contrib/eager/python/examples/workshop/ |
D | 3_inspecting.ipynb | 138 "vocab_file = os.path.join(gs_data_dir, vocab_name)\n", 139 "!gsutil cp {vocab_file} {data_dir}\n",
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
D | estimator_test.py | 217 vocab_file = gfile.GFile(vocab_file_name, mode='w') 218 vocab_file.write(VOCAB_FILE_CONTENT) 219 vocab_file.close()
|
/external/tensorflow/tensorflow/core/ops/compat/ |
D | ops_history.v0.pbtxt | 12353 name: "vocab_file"
|
D | ops_history.v2.pbtxt | 26565 name: "vocab_file" 26666 name: "vocab_file"
|
D | ops_history.v1.pbtxt | 26936 name: "vocab_file" 27037 name: "vocab_file"
|
/external/tensorflow/tensorflow/core/ops/ |
D | ops.pbtxt | 13256 name: "vocab_file"
|