Home
last modified time | relevance | path

Searched refs:word_id (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Drange_sampler.cc276 for (int32 word_id = 0; word_id < num_reserved_ids; ++word_id) { in FillReservedIds() local
277 if (word_id % num_shards_ == shard_) weights_.push_back(0.0); in FillReservedIds()
288 int32 word_id = weights_.size(); in LoadFromFile() local
295 if (word_id % num_shards_ == shard_) { in LoadFromFile()
305 ++word_id; in LoadFromFile()
312 int32 word_id = weights_.size(); in LoadFromUnigrams() local
315 if (word_id % num_shards_ == shard_) { in LoadFromUnigrams()
320 ++word_id; in LoadFromUnigrams()
Dword2vec_kernels.cc214 std::unordered_map<string, int32> word_id; in Init() local
223 word_id[w] = id; in Init()
231 corpus_.push_back(gtl::FindWithDefault(word_id, w, kUnkId)); in Init()