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

Function IsValidNgram

tensorflow/lite/models/smartreply/ops/extract_feature.cc:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool IsValidNgram(const tflite::StringRef& strref) {
53 for (const auto& s : kBlacklistNgram) {
54 if (Equals(s, strref)) {
55 return false;
56 }
57 }
58 return true;
59}
60
61TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
62 const TfLiteTensor* input = GetInput(context, node, 0);

Callers 1

EvalFunction · 0.85

Calls 1

EqualsFunction · 0.85

Tested by

no test coverage detected