MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ShouldIncludeCurrentNgram

Function ShouldIncludeCurrentNgram

tensorflow/lite/kernels/skip_gram.cc:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool ShouldIncludeCurrentNgram(const TfLiteSkipGramParams* params, int size) {
58 if (size <= 0) {
59 return false;
60 }
61 if (params->include_all_ngrams) {
62 return size <= params->ngram_size;
63 } else {
64 return size == params->ngram_size;
65 }
66}
67
68bool ShouldStepInRecursion(const TfLiteSkipGramParams* params,
69 const std::vector<int>& stack, int stack_idx,

Callers 1

EvalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected