/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_utils.cc | 84 tensorflow::Status ReturnError(const std::vector<string>& pieces, int idx) { in ReturnError() argument 86 if (pieces.size() > idx + 1) { in ReturnError() 87 val = pieces[idx + 1]; in ReturnError() 91 strings::StrCat("Invalid option '", pieces[idx], "' value: '", val, "'")); in ReturnError() 117 std::vector<string> pieces = in ParseCmdLine() local 121 if (std::find(cmds_str.begin(), cmds_str.end(), pieces[0]) == in ParseCmdLine() 126 *cmd = pieces[0]; in ParseCmdLine() 128 for (int i = 1; i < pieces.size(); ++i) { in ParseCmdLine() 129 if (pieces[i] == string(tensorflow::tfprof::kOptions[0])) { in ParseCmdLine() 130 if (pieces.size() <= i + 1 || in ParseCmdLine() [all …]
|
/external/libchrome/base/strings/ |
D | strcat.h | 61 BASE_EXPORT std::string StrCat(span<const StringPiece> pieces); 62 BASE_EXPORT string16 StrCat(span<const StringPiece16> pieces); 63 BASE_EXPORT std::string StrCat(span<const std::string> pieces); 64 BASE_EXPORT string16 StrCat(span<const string16> pieces); 67 inline std::string StrCat(std::initializer_list<StringPiece> pieces) { in StrCat() argument 68 return StrCat(make_span(pieces.begin(), pieces.size())); in StrCat() 70 inline string16 StrCat(std::initializer_list<StringPiece16> pieces) { in StrCat() argument 71 return StrCat(make_span(pieces.begin(), pieces.size())); in StrCat() 82 BASE_EXPORT void StrAppend(std::string* dest, span<const StringPiece> pieces); 83 BASE_EXPORT void StrAppend(string16* dest, span<const StringPiece16> pieces); [all …]
|
D | strcat.cc | 29 void StrAppendT(DestString* dest, span<const InputString> pieces) { in StrAppendT() argument 31 for (const auto& cur : pieces) in StrAppendT() 35 for (const auto& cur : pieces) in StrAppendT() 41 std::string StrCat(span<const StringPiece> pieces) { in StrCat() argument 43 StrAppendT(&result, pieces); in StrCat() 47 string16 StrCat(span<const StringPiece16> pieces) { in StrCat() argument 49 StrAppendT(&result, pieces); in StrCat() 53 std::string StrCat(span<const std::string> pieces) { in StrCat() argument 55 StrAppendT(&result, pieces); in StrCat() 59 string16 StrCat(span<const string16> pieces) { in StrCat() argument [all …]
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | AddPopulationData.java | 29 String get(String[] pieces) { in get() argument 30 return ordinal() < pieces.length ? pieces[ordinal()] : EMPTY; in get() 36 String get(String[] pieces) { in get() argument 37 return pieces[ordinal()]; in get() 43 String get(String[] pieces) { in get() argument 44 return pieces[ordinal()]; in get() 109 String[] pieces = altName.split("\t"); in main() local 110 String code = pieces[0]; in main() 116 System.out.println(code + "; " + pieces[2] + "; " + pieces[1]); in main() 203 String[] pieces = line.split("\\s{2,}"); in loadFactbookInfo() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | LocaleIDParser.java | 86 String[] pieces = new String[100]; // fix limitation later in set() local 87 Utility.split(localeID, '_', pieces); in set() 89 language = pieces[i++]; in set() 90 if (i >= pieces.length) return this; in set() 91 if (pieces[i].length() == 4) { in set() 92 script = pieces[i++]; in set() 93 if (i >= pieces.length) return this; in set() 95 if (pieces[i].length() == 2 && letters.containsAll(pieces[i]) in set() 96 || pieces[i].length() == 3 && digits.containsAll(pieces[i])) { in set() 97 region = pieces[i++]; in set() [all …]
|
D | ZoneParser.java | 175 String[] pieces = in.split(":"); in parseSeconds() local 178 for (int i = 0; i < pieces.length; ++i) { in parseSeconds() 179 result += multiplier * Integer.parseInt(pieces[i]); in parseSeconds() 688 List<String> pieces = CldrUtility.splitList(line, '\t', true); in makeZoneData() local 689 String country = pieces.get(0); in makeZoneData() 690 String latLong = pieces.get(1); in makeZoneData() 691 String tzid = pieces.get(2); in makeZoneData() 695 String comment = pieces.size() < 4 ? null : (String) pieces.get(3); in makeZoneData() 696 pieces.clear(); in makeZoneData() 701 pieces.add(getDegrees(m, true).toString()); in makeZoneData() [all …]
|
/external/tensorflow/tensorflow/python/autograph/core/ |
D | naming.py | 69 pieces = cn.split('.') 72 pieces = tuple(misc.capitalize_initial(p) for p in pieces) 73 return ''.join(pieces) 75 return '_'.join(pieces) 115 pieces = name_root.split('_') 116 if pieces[-1].isdigit(): 117 name_root = '_'.join(pieces[:-1]) 118 n = int(pieces[-1])
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_diagnostics.cc | 59 std::vector<string> pieces = port::Split(value, '.'); in StringToDriverVersion() local 60 if (pieces.size() != 2 && pieces.size() != 3) { in StringToDriverVersion() 70 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion() 75 pieces[0].c_str(), value.c_str())}; in StringToDriverVersion() 77 if (!port::safe_strto32(pieces[1], &minor)) { in StringToDriverVersion() 82 pieces[1].c_str(), value.c_str())}; in StringToDriverVersion() 84 if (pieces.size() == 3 && !port::safe_strto32(pieces[2], &patch)) { in StringToDriverVersion() 89 pieces[2].c_str(), value.c_str())}; in StringToDriverVersion() 124 std::vector<string> pieces = port::Split(library_path, ':'); in LogDriverVersionInformation() local 125 for (const auto& piece : pieces) { in LogDriverVersionInformation()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | buffer_liveness.cc | 77 std::vector<string> pieces; in ToString() local 78 pieces.push_back( in ToString() 80 pieces.push_back("HloOrdering:"); in ToString() 81 pieces.push_back(hlo_ordering_->ToString()); in ToString() 82 pieces.push_back("Aliased buffers:"); in ToString() 84 pieces.push_back(absl::StrFormat(" %s", buffer->ToString())); in ToString() 86 pieces.push_back("Live out buffers:"); in ToString() 88 pieces.push_back(absl::StrFormat(" %s", buffer->ToString())); in ToString() 90 return absl::StrJoin(pieces, "\n"); in ToString()
|
/external/clang/test/SemaObjC/ |
D | property-typecheck-1.m | 72 NSMutableArray* pieces; field 76 …property (readonly) NSArray* pieces; // expected-warning {{type of property 'pieces' does not matc… property 79 - (NSMutableArray*) pieces; // expected-note 2 {{declared here}} method 93 …return container.pieces; // expected-warning {{type of property 'pieces' does not match type of ac…
|
/external/icu/icu4c/source/common/ |
D | caniter.cpp | 71 pieces(NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 90 if(pieces != NULL) { in cleanPieces() 92 if(pieces[i] != NULL) { in cleanPieces() 93 delete[] pieces[i]; in cleanPieces() 96 uprv_free(pieces); in cleanPieces() 97 pieces = NULL; in cleanPieces() 146 buffer.append(pieces[i][current[i]]); in next() 185 pieces = (UnicodeString **)uprv_malloc(sizeof(UnicodeString *)); in setSource() 190 if (pieces == NULL || pieces_lengths == NULL || current == NULL) { in setSource() 195 pieces[0] = new UnicodeString[1]; in setSource() [all …]
|
/external/libtextclassifier/utils/sentencepiece/ |
D | encoder_test.cc | 33 const char pieces[] = "hell\0hello\0o\0there\0"; in TEST() local 37 /*num_pieces=*/4, offsets, StringPiece(pieces, 18))); in TEST() 58 const char pieces[] = "hell\0hello\0o\0there\0"; in TEST() local 62 /*num_pieces=*/4, offsets, StringPiece(pieces, 18))); in TEST() 88 const char pieces[] = "hell\0hello\0o\0there\0"; in TEST() local 92 /*num_pieces=*/4, offsets, StringPiece(pieces, 18))); in TEST()
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_diagnostics.cc | 68 std::vector<string> pieces = port::Split(value, '.'); in StringToDriverVersion() local 69 if (pieces.size() < 2 || pieces.size() > 4) { in StringToDriverVersion() 80 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion() 85 pieces[0].c_str(), value.c_str())); in StringToDriverVersion() 87 if (!port::safe_strto32(pieces[1], &minor)) { in StringToDriverVersion() 92 pieces[1].c_str(), value.c_str())); in StringToDriverVersion() 94 if (pieces.size() == 3 && !port::safe_strto32(pieces[2], &patch)) { in StringToDriverVersion() 99 pieces[2].c_str(), value.c_str())); in StringToDriverVersion() 180 std::vector<string> pieces = port::Split(library_path, ':'); in LogDriverVersionInformation() local 181 for (const auto &piece : pieces) { in LogDriverVersionInformation()
|
/external/tensorflow/tensorflow/python/distribute/ |
D | all_reduce.py | 78 def _padded_split(tensor, pieces): argument 100 if tensor_len % pieces != 0: 102 chunk_size = 1 + tensor_len // pieces 103 if pieces > tensor_len: 107 pad_len = pieces - tensor_len 110 parts = array_ops.split(extended_whole, pieces) 112 elif (pieces - 1) * chunk_size >= tensor_len: 114 pad_len = (pieces * chunk_size) % tensor_len 117 parts = array_ops.split(extended_whole, pieces) 120 last_chunk_size = tensor_len - (pieces - 1) * chunk_size [all …]
|
/external/tensorflow/tensorflow/core/lib/strings/ |
D | strcat_test.cc | 69 StringPiece pieces[] = {"Hello", "Cruel", "World"}; in TEST() local 85 result = tensorflow::strings::StrCat(strs[1], pieces[2]); in TEST() 88 result = tensorflow::strings::StrCat(strs[0], ", ", pieces[2]); in TEST() 96 tensorflow::strings::StrCat(pieces[0], ", ", pieces[1], " ", pieces[2]); in TEST() 211 StringPiece pieces[] = {"Hello", "Cruel", "World"}; in TEST() local 223 tensorflow::strings::StrAppend(&result, strs[1], pieces[2]); in TEST() 227 tensorflow::strings::StrAppend(&result, strs[0], ", ", pieces[2]); in TEST() 236 tensorflow::strings::StrAppend(&result, pieces[0], ", ", pieces[1], " ", in TEST() 237 pieces[2]); in TEST()
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | test_macros.cc | 59 std::vector<string> pieces = absl::StrSplit(line, ' '); in ReadManifest() local 60 CHECK_GE(pieces.size(), 1); in ReadManifest() 61 auto& platforms = manifest[pieces[0]]; in ReadManifest() 62 for (int64 i = 1; i < pieces.size(); ++i) { in ReadManifest() 63 platforms.push_back(pieces[i]); in ReadManifest()
|
/external/tensorflow/tensorflow/core/framework/ |
D | attr_value_util.cc | 223 std::vector<string> pieces; in SummarizeAttrValue() local 226 pieces.push_back(SummarizeString(attr_value.list().s(i))); in SummarizeAttrValue() 230 pieces.push_back(strings::StrCat(attr_value.list().i(i))); in SummarizeAttrValue() 234 pieces.push_back(strings::StrCat(attr_value.list().f(i))); in SummarizeAttrValue() 238 pieces.push_back(attr_value.list().b(i) ? "true" : "false"); in SummarizeAttrValue() 242 pieces.push_back(EnumName_DataType(attr_value.list().type(i))); in SummarizeAttrValue() 246 pieces.push_back( in SummarizeAttrValue() 251 pieces.push_back(SummarizeTensor(attr_value.list().tensor(i))); in SummarizeAttrValue() 255 pieces.push_back(SummarizeFunc(attr_value.list().func(i))); in SummarizeAttrValue() 259 if (pieces.size() >= kMaxListSummarySize) { in SummarizeAttrValue() [all …]
|
/external/skia/tools/lua/ |
D | count_dashes.lua | 51 local pieces = 2*p 52 if pieces < 5 then 55 if pieces > 5 and pieces < 10 then
|
/external/skqp/tools/lua/ |
D | count_dashes.lua | 51 local pieces = 2*p 52 if pieces < 5 then 55 if pieces > 5 and pieces < 10 then
|
/external/python/cpython2/Lib/ |
D | repr.py | 48 pieces = [repr1(elem, newlevel) for elem in islice(x, maxiter)] 49 if n > maxiter: pieces.append('...') 50 s = ', '.join(pieces) 82 pieces = [] 86 pieces.append('%s: %s' % (keyrepr, valrepr)) 87 if n > self.maxdict: pieces.append('...') 88 s = ', '.join(pieces)
|
/external/syzkaller/pkg/hash/ |
D | hash.go | 16 func Hash(pieces ...[]byte) Sig { 18 for _, data := range pieces { 26 func String(pieces ...[]byte) string { 27 sig := Hash(pieces...)
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CanonicalIterator.java | 89 for (int i = 0; i < pieces.length; ++i) { in next() 90 buffer.append(pieces[i][current[i]]); in next() 102 if (current[i] < pieces[i].length) break; // got sequence in next() 119 pieces = new String[1][]; in setSource() 121 pieces[0] = new String[]{""}; in setSource() 145 pieces = new String[segmentList.size()][]; in setSource() 147 for (i = 0; i < pieces.length; ++i) { in setSource() 149 pieces[i] = getEquivalents(segmentList.get(i)); in setSource() 235 private String[][] pieces; field in CanonicalIterator
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | CanonicalIterator.java | 92 for (int i = 0; i < pieces.length; ++i) { in next() 93 buffer.append(pieces[i][current[i]]); in next() 105 if (current[i] < pieces[i].length) break; // got sequence in next() 123 pieces = new String[1][]; in setSource() 125 pieces[0] = new String[]{""}; in setSource() 149 pieces = new String[segmentList.size()][]; in setSource() 151 for (i = 0; i < pieces.length; ++i) { in setSource() 153 pieces[i] = getEquivalents(segmentList.get(i)); in setSource() 239 private String[][] pieces; field in CanonicalIterator
|
/external/python/cpython3/Lib/ |
D | reprlib.py | 71 pieces = [repr1(elem, newlevel) for elem in islice(x, maxiter)] 72 if n > maxiter: pieces.append('...') 73 s = ', '.join(pieces) 111 pieces = [] 115 pieces.append('%s: %s' % (keyrepr, valrepr)) 116 if n > self.maxdict: pieces.append('...') 117 s = ', '.join(pieces)
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | UnicodeMapBuilder.java | 72 final String[] pieces = semi.split(line); in putFromLines() local 73 if (pieces.length < 2) { in putFromLines() 76 final String codelist = pieces[0].trim(); in putFromLines() 77 final String valueString = pieces[1].trim(); in putFromLines() 78 if (UnicodeSet.resemblesPattern(pieces[0], 0)) { in putFromLines()
|