/external/tensorflow/tensorflow/lite/kernels/ |
D | skip_gram.cc | 99 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()
|
D | skip_gram_test.cc | 57 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/ |
D | Identifier.h | 37 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;
|
D | FunctionSupport.h | 483 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()
|
D | Operation.h | 365 return attr.first.strref().count('.'); in filter() 399 if (!attr.first.strref().count('.')) in setDialectAttrs()
|
/external/llvm-project/clang/utils/ |
D | ClangDataFormat.py | 35 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/ |
D | ClangDataFormat.py | 35 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/ |
D | task_utils.cc | 50 const auto& strref = tflite::GetString(labels, index); in GetStringAtIndex() local 51 return std::string(strref.str, strref.len); in GetStringAtIndex()
|
D | task_utils.h | 132 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/ |
D | sentencepiece_tokenizer_tflite.cc | 89 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/ |
D | attribute_utils.h | 35 return attr.first.strref().front() == '_'; in CopyUnderscoredAttributes() 46 return attr.first.strref().front() == '_' || attr.first == device; in CopyDeviceAndUnderscoredAttributes()
|
D | device_util.cc | 104 kDevicesAttr, name.strref())); in GetDevicesFromOp()
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/utils/ |
D | utils.cc | 36 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/ |
D | Verifier.cpp | 51 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()
|
D | BuiltinDialect.cpp | 226 if (!attr.first.strref().contains('.') && in verify() 230 attr.first.strref())) in verify()
|
/external/antlr/tool/src/main/java/org/antlr/codegen/ |
D | CTarget.java | 271 String strref = "lit_" + String.valueOf(index + 1); in getTargetStringLiteralFromANTLRStringLiteral() local 273 return strref; in getTargetStringLiteralFromANTLRStringLiteral()
|
D | CppTarget.java | 317 String strref = "lit_" + String.valueOf(index + 1); in getTargetStringLiteralFromANTLRStringLiteral() local 319 return strref; in getTargetStringLiteralFromANTLRStringLiteral()
|
/external/libtextclassifier/native/utils/tflite/ |
D | text_encoder.cc | 243 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/ |
D | import_quant_stats_pass.cc | 216 return name.getName().strref(); in CreateImportQuantStatsPassForTFControlDialect() 220 return named_sub_loc.getName().strref(); in CreateImportQuantStatsPassForTFControlDialect()
|
/external/tensorflow/tensorflow/compiler/mlir/utils/ |
D | name_utils.cc | 68 auto name = name_loc.getName().strref().split('@').first; in GetNameFromLoc()
|
/external/tensorflow/tensorflow/lite/java/src/main/native/ |
D | tensor_jni.cc | 246 const tflite::StringRef strref = in ReadMultiDimensionalStringArray() local 250 std::string str(strref.str, strref.len); in ReadMultiDimensionalStringArray()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/ |
D | export_tf_dialect_op.cc | 132 mlir::StringRefToView(derived_attr.first.strref())); in GetAttributesToIgnore()
|
/external/llvm-project/mlir/lib/CAPI/IR/ |
D | BuiltinAttributes.cpp | 85 return {wrap(attribute.first.strref()), wrap(attribute.second)}; in mlirDictionaryAttrGetElement() 172 return wrap(unwrap(attr).cast<OpaqueAttr>().getDialectNamespace().strref()); in mlirOpaqueAttrGetDialectNamespace()
|
D | IR.cpp | 311 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/ |
D | OpBuildGen.cpp | 66 EXPECT_EQ(op->getAttr(attrs[idx].first.strref()), attrs[idx].second); in verifyOp()
|