Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/kernels/
Dword2vec_kernels.cc152 int32 word_freq = freq_.flat<int32>()(corpus_[example_pos_]); in NextExample() local
155 (std::sqrt(word_freq / (subsample_ * corpus_size_)) + 1) * in NextExample()
156 (subsample_ * corpus_size_) / word_freq; in NextExample()
185 std::unordered_map<string, int32> word_freq; in Init() local
187 ++(word_freq[w]); in Init()
197 for (const auto& p : word_freq) { in Init()
201 << " bytes, " << corpus_size_ << " words, " << word_freq.size() in Init()
204 word_freq.clear(); in Init()