Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/lite/kernels/
Dskip_gram.cc99 tflite::StringRef strref = tflite::GetString(input, 0); in Eval() local
101 for (int i = 1; i < strref.len; i++) { in Eval()
102 if (isspace(*(strref.str + i))) { in Eval()
103 if (i > prev_idx && !isspace(*(strref.str + prev_idx))) { in Eval()
104 words.push_back({strref.str + prev_idx, i - prev_idx}); in Eval()
109 if (strref.len > prev_idx) { in Eval()
110 words.push_back({strref.str + prev_idx, strref.len - prev_idx}); in Eval()
Dskip_gram_test.cc57 StringRef strref = GetString(tensor, i); in GetOutput() local
58 ans.push_back(string(strref.str, strref.len)); in GetOutput()
/external/llvm-project/mlir/include/mlir/IR/
DIdentifier.h37 StringRef strref() const { return entry->first(); } in strref() function
40 operator StringRef() const { return strref(); } in StringRef()
43 std::string str() const { return strref().str(); } in str()
71 int compare(Identifier rhs) const { return strref().compare(rhs.strref()); } in compare()
87 return lhs.strref() == rhs;
92 return rhs.strref() == lhs;
DFunctionSupport.h483 if (!attr.first.strref().contains('.')) in verifyTrait()
485 auto dialectNamePair = attr.first.strref().split('.'); in verifyTrait()
499 if (!attr.first.strref().contains('.')) in verifyTrait()
501 auto dialectNamePair = attr.first.strref().split('.'); in verifyTrait()
DOperation.h365 return attr.first.strref().count('.'); in filter()
399 if (!attr.first.strref().count('.')) in setDialectAttrs()
/external/llvm-project/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/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/tflite-support/tensorflow_lite_support/cc/task/core/
Dtask_utils.cc50 const auto& strref = tflite::GetString(labels, index); in GetStringAtIndex() local
51 return std::string(strref.str, strref.len); in GetStringAtIndex()
Dtask_utils.h132 const auto& strref = tflite::GetString(tensor, i);
133 data->emplace_back(strref.str, strref.len);
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/sentencepiece/
Dsentencepiece_tokenizer_tflite.cc89 const auto strref = tflite::GetString(&input_text, i); in Eval() local
90 const auto res = EncodeString(std::string(strref.str, strref.len), in Eval()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dattribute_utils.h35 return attr.first.strref().front() == '_'; in CopyUnderscoredAttributes()
46 return attr.first.strref().front() == '_' || attr.first == device; in CopyDeviceAndUnderscoredAttributes()
Ddevice_util.cc104 kDevicesAttr, name.strref())); in GetDevicesFromOp()
/external/tensorflow/tensorflow/compiler/mlir/tfr/utils/
Dutils.cc36 if (GetAllowedAttributes().contains(attr.first.strref())) { in CollectAllowedAttrs()
126 StringRef attr_name = attr.first.strref(); in ValidateAttrs()
139 StringRef attr_name = attr.first.strref(); in CopyAllowedUnregisteredAttrs()
/external/llvm-project/mlir/lib/IR/
DVerifier.cpp51 assert(attr.first.strref().contains('.') && "expected dialect attribute"); in getDialectForAttribute()
52 auto dialectNamePair = attr.first.strref().split('.'); in getDialectForAttribute()
172 if (!attr.first.strref().contains('.')) in verifyOperation()
DBuiltinDialect.cpp226 if (!attr.first.strref().contains('.') && in verify()
230 attr.first.strref())) in verify()
/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/libtextclassifier/native/utils/tflite/
Dtext_encoder.cc243 const auto& strref = tflite::GetString(&input_text, i); in Eval() local
247 StringPiece(strref.str, strref.len), &normalized)); in Eval()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dimport_quant_stats_pass.cc216 return name.getName().strref(); in CreateImportQuantStatsPassForTFControlDialect()
220 return named_sub_loc.getName().strref(); in CreateImportQuantStatsPassForTFControlDialect()
/external/tensorflow/tensorflow/compiler/mlir/utils/
Dname_utils.cc68 auto name = name_loc.getName().strref().split('@').first; in GetNameFromLoc()
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dtensor_jni.cc246 const tflite::StringRef strref = in ReadMultiDimensionalStringArray() local
250 std::string str(strref.str, strref.len); in ReadMultiDimensionalStringArray()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dexport_tf_dialect_op.cc132 mlir::StringRefToView(derived_attr.first.strref())); in GetAttributesToIgnore()
/external/llvm-project/mlir/lib/CAPI/IR/
DBuiltinAttributes.cpp85 return {wrap(attribute.first.strref()), wrap(attribute.second)}; in mlirDictionaryAttrGetElement()
172 return wrap(unwrap(attr).cast<OpaqueAttr>().getDialectNamespace().strref()); in mlirOpaqueAttrGetDialectNamespace()
DIR.cpp311 return MlirNamedAttribute{wrap(attr.first.strref()), wrap(attr.second)}; in mlirOperationGetAttribute()
607 return wrap(unwrap(ident).strref()); in mlirIdentifierStr()
/external/llvm-project/mlir/unittests/TableGen/
DOpBuildGen.cpp66 EXPECT_EQ(op->getAttr(attrs[idx].first.strref()), attrs[idx].second); in verifyOp()

12