Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/models/smartreply/ops/
Dextract_feature.cc41 bool Equals(const string& x, const tflite::StringRef& strref) { in Equals() argument
42 if (strref.len != x.length()) { in Equals()
45 if (strref.len > 0) { in Equals()
46 int r = memcmp(strref.str, x.data(), strref.len); in Equals()
52 bool IsValidNgram(const tflite::StringRef& strref) { in IsValidNgram() argument
54 if (Equals(s, strref)) { in IsValidNgram()
87 auto strref = tflite::GetString(input, i); in Eval() local
88 if (!IsValidNgram(strref)) { in Eval()
95 ::util::Fingerprint64(strref.str, strref.len) % kMaxDimension; in Eval()
98 std::count(strref.str, strref.str + strref.len, ' ') + 1; in Eval()
/external/tensorflow/tensorflow/lite/kernels/
Dskip_gram.cc93 tflite::StringRef strref = tflite::GetString(GetInput(context, node, 0), 0); in Eval() local
95 for (int i = 1; i < strref.len; i++) { in Eval()
96 if (isspace(*(strref.str + i))) { in Eval()
97 if (i > prev_idx && !isspace(*(strref.str + prev_idx))) { in Eval()
98 words.push_back({strref.str + prev_idx, i - prev_idx}); in Eval()
103 if (strref.len > prev_idx) { in Eval()
104 words.push_back({strref.str + prev_idx, strref.len - prev_idx}); in Eval()
Dskip_gram_test.cc54 StringRef strref = GetString(tensor, i); in GetOutput() local
55 ans.push_back(string(strref.str, strref.len)); in GetOutput()
/external/clang/utils/
DClangDataFormat.py35 def StringRef_summary(strref, internal_dict): argument
36 return StringRef(strref).summary()
83 def __init__(self, strref): argument
84 self.strref = strref
85 self.Data_value = strref.GetChildAtIndex(0)
86 self.Length = strref.GetChildAtIndex(1).GetValueAsUnsigned()
/external/libtextclassifier/utils/tflite/
Dtext_encoder.cc242 const auto& strref = tflite::GetString(&input_text, i); in Eval() local
246 StringPiece(strref.str, strref.len), &normalized)); in Eval()
/external/antlr/tool/src/main/java/org/antlr/codegen/
DCTarget.java271 String strref = "lit_" + String.valueOf(index + 1); in getTargetStringLiteralFromANTLRStringLiteral() local
273 return strref; in getTargetStringLiteralFromANTLRStringLiteral()
DCppTarget.java317 String strref = "lit_" + String.valueOf(index + 1); in getTargetStringLiteralFromANTLRStringLiteral() local
319 return strref; in getTargetStringLiteralFromANTLRStringLiteral()
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dtensor_jni.cc216 const tflite::StringRef strref = in ReadMultiDimensionalStringArray() local
218 jstring string_dest = env->NewStringUTF(strref.str); in ReadMultiDimensionalStringArray()