/external/libtextclassifier/utils/sentencepiece/ |
D | normalizer_test.cc | 44 std::string normalized; in TEST() local 45 EXPECT_TRUE(normalizer.Normalize("hello there", &normalized)); in TEST() 46 EXPECT_EQ(normalized, "▁hello▁there"); in TEST() 51 std::string normalized; in TEST() local 52 EXPECT_TRUE(normalizer.Normalize("when is the world cup?", &normalized)); in TEST() 53 EXPECT_EQ(normalized, "▁when▁is▁the▁world▁cup?"); in TEST() 58 std::string normalized; in TEST() local 59 EXPECT_TRUE(normalizer.Normalize("general\tkenobi", &normalized)); in TEST() 60 EXPECT_EQ(normalized, "▁general▁kenobi"); in TEST() 65 std::string normalized; in TEST() local [all …]
|
/external/mesa3d/src/mesa/main/ |
D | format_utils.c | 278 bool normalized, dst_integer, src_integer, is_signed; in _mesa_format_convert() local 402 normalized = false; in _mesa_format_convert() 410 normalized = _mesa_array_format_is_normalized(src_array_format); in _mesa_format_convert() 421 normalized |= _mesa_array_format_is_normalized(dst_array_format); in _mesa_format_convert() 434 src2dst, normalized, width); in _mesa_format_convert() 523 rebased_src2rgba, normalized, width); in _mesa_format_convert() 546 rgba2dst, normalized, width); in _mesa_format_convert() 568 rebased_src2rgba, normalized, width); in _mesa_format_convert() 580 rebase_swizzle, normalized, width); in _mesa_format_convert() 590 rgba2dst, normalized, width); in _mesa_format_convert() [all …]
|
/external/tensorflow/tensorflow/contrib/bigtable/python/ops/ |
D | bigtable_api.py | 173 normalized = args 174 if normalized is None: 175 normalized = [] 176 if isinstance(normalized, tuple): 177 normalized = list(normalized) 182 normalized.append((key, value)) 185 normalized.append((key, col)) 189 return _BigtableLookupDataset(dataset, table, normalized) 280 normalized = _normalize_columns(columns, kwargs) 282 _BigtableScanDataset(self, prefix, "", "", normalized, probability)) [all …]
|
/external/eigen/test/ |
D | geo_quaternion.cpp | 80 q1 = AngleAxisx(a, v0.normalized()); in quaternion() 81 q2 = AngleAxisx(a, v1.normalized()); in quaternion() 117 && (aa.axis() - v1.normalized()).norm() < Scalar(1.99) in quaternion() 118 && (aa.axis() + v1.normalized()).norm() < Scalar(1.99)) in quaternion() 124 VERIFY_IS_APPROX( v2.normalized(),(q2.setFromTwoVectors(v1, v2)*v1).normalized()); in quaternion() 125 VERIFY_IS_APPROX( v1.normalized(),(q2.setFromTwoVectors(v1, v1)*v1).normalized()); in quaternion() 126 VERIFY_IS_APPROX(-v1.normalized(),(q2.setFromTwoVectors(v1,-v1)*v1).normalized()); in quaternion() 130 VERIFY_IS_APPROX( v3.normalized(),(q2.setFromTwoVectors(v1, v3)*v1).normalized()); in quaternion() 131 VERIFY_IS_APPROX(-v3.normalized(),(q2.setFromTwoVectors(v1,-v3)*v1).normalized()); in quaternion() 135 VERIFY_IS_APPROX( v2.normalized(),(Quaternionx::FromTwoVectors(v1, v2)*v1).normalized()); in quaternion() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-glib.cc | 256 gchar *normalized; in hb_glib_unicode_compose() local 262 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFC); in hb_glib_unicode_compose() 263 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_compose() 268 *ab = g_utf8_get_char (normalized); in hb_glib_unicode_compose() 274 g_free (normalized); in hb_glib_unicode_compose() 293 gchar *normalized; in hb_glib_unicode_decompose() local 298 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFD); in hb_glib_unicode_decompose() 299 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_decompose() 304 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose() 308 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose() [all …]
|
D | hb-icu.cc | 179 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local 192 …_normalize (unorm2_getNFCInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (normalized), &… in hb_icu_unicode_compose() 195 if (u_countChar32 (normalized, len) == 1) { in hb_icu_unicode_compose() 196 U16_GET_UNSAFE (normalized, 0, *ab); in hb_icu_unicode_compose() 239 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local 254 …_normalize (unorm2_getNFDInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (normalized), &… in hb_icu_unicode_decompose() 258 len = u_countChar32 (normalized, len); in hb_icu_unicode_decompose() 261 U16_GET_UNSAFE (normalized, 0, *a); in hb_icu_unicode_decompose() 266 U16_NEXT_UNSAFE (normalized, len, *a); in hb_icu_unicode_decompose() 267 U16_NEXT_UNSAFE (normalized, len, *b); in hb_icu_unicode_decompose() [all …]
|
/external/swiftshader/src/Renderer/ |
D | Stream.hpp | 61 Stream &define(StreamType type, unsigned int count, bool normalized = false) in define() 65 this->normalized = normalized; in define() 70 Stream &define(const void *buffer, StreamType type, unsigned int count, bool normalized = false) in define() 75 this->normalized = normalized; in define() 89 normalized = false; in defaults() 101 bool normalized; member
|
/external/swiftshader/src/Device/ |
D | Stream.hpp | 61 Stream &define(StreamType type, unsigned int count, bool normalized = false) in define() 65 this->normalized = normalized; in define() 70 Stream &define(const void *buffer, StreamType type, unsigned int count, bool normalized = false) in define() 75 this->normalized = normalized; in define() 89 normalized = false; in defaults() 101 bool normalized; member
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | FCDIterCollationIterator.java | 85 pos != normalized.length()) { in nextCodePoint() 86 c = normalized.codePointAt(pos); in nextCodePoint() 139 c = normalized.codePointBefore(pos); in previousCodePoint() 175 pos != normalized.length()) { in handleNextCE32() 176 c = normalized.charAt(pos++); in handleNextCE32() 196 assert(pos < normalized.length()); in handleGetTrailSurrogate() 198 if(Character.isLowSurrogate(trail = normalized.charAt(pos))) { ++pos; } in handleGetTrailSurrogate() 227 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); in switchToForward() 386 pos = normalized.length(); in previousSegment() 403 if(normalized == null) { in normalize() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | FCDIterCollationIterator.java | 87 pos != normalized.length()) { in nextCodePoint() 88 c = normalized.codePointAt(pos); in nextCodePoint() 141 c = normalized.codePointBefore(pos); in previousCodePoint() 177 pos != normalized.length()) { in handleNextCE32() 178 c = normalized.charAt(pos++); in handleNextCE32() 198 assert(pos < normalized.length()); in handleGetTrailSurrogate() 200 if(Character.isLowSurrogate(trail = normalized.charAt(pos))) { ++pos; } in handleGetTrailSurrogate() 229 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); in switchToForward() 388 pos = normalized.length(); in previousSegment() 405 if(normalized == null) { in normalize() [all …]
|
/external/toolchain-utils/android_bench_suite/ |
D | fix_skia_results.py | 73 normalized = [float(t) * ms_mul / mul for t in ms] 74 average = sum(normalized) / len(normalized) 75 if all(n > 0.1 for n in normalized) and average >= 1: 76 return name, normalized 78 normalized = [float(t) * ms_mul for t in ms] 79 return 'ns', normalized
|
/external/tensorflow/tensorflow/core/framework/ |
D | graph_to_functiondef.cc | 94 const string normalized = UniquifyHelper(NormalizeHelper(name)); in Normalize() local 95 name_mapping_[name] = normalized; in Normalize() 96 return normalized; in Normalize() 136 const string normalized = node_names.Normalize(node->name()); in GraphToFunctionDef() local 137 argdef->set_name(normalized); in GraphToFunctionDef() 138 tensor_renaming[strings::StrCat(node->name(), ":0")] = normalized; in GraphToFunctionDef() 153 const string normalized = node_names.Normalize(node->name()); in GraphToFunctionDef() local 154 argdef->set_name(normalized); in GraphToFunctionDef() 157 return_values[normalized] = in GraphToFunctionDef() 236 const string normalized = in GraphToFunctionDef() local [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_normalize_cubemap_coords.c | 64 nir_ssa_def *normalized = nir_fmul(b, orig_coord, nir_frcp(b, norm)); in normalize_cubemap_coords_block() local 70 normalized = nir_vec4(b, in normalize_cubemap_coords_block() 71 nir_channel(b, normalized, 0), in normalize_cubemap_coords_block() 72 nir_channel(b, normalized, 1), in normalize_cubemap_coords_block() 73 nir_channel(b, normalized, 2), in normalize_cubemap_coords_block() 79 nir_src_for_ssa(normalized)); in normalize_cubemap_coords_block()
|
/external/skqp/tests/ |
D | SRGBTest.cpp | 16 for (int normalized = 0; normalized < 2; normalized++) { in DEF_TEST() local 33 linearize.apply(&p, !!normalized); in DEF_TEST() 34 reencode .apply(&p, !!normalized); in DEF_TEST() 83 bool normalized) { in test_roundtripping() argument 111 linearize.apply(&p, normalized); in test_roundtripping() 112 reencode .apply(&p, normalized); in test_roundtripping()
|
/external/skia/tests/ |
D | SRGBTest.cpp | 16 for (int normalized = 0; normalized < 2; normalized++) { in DEF_TEST() local 33 linearize.apply(&p, !!normalized); in DEF_TEST() 34 reencode .apply(&p, !!normalized); in DEF_TEST() 83 bool normalized) { in test_roundtripping() argument 111 linearize.apply(&p, normalized); in test_roundtripping() 112 reencode .apply(&p, normalized); in test_roundtripping()
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | UriPatternType.java | 79 String normalized = ServletUtils.normalizePath(literal); in ServletStyleUriPatternMatcher() local 81 normalized = "*" + normalized; in ServletStyleUriPatternMatcher() 83 normalized = normalized + "*"; in ServletStyleUriPatternMatcher() 85 if (!pattern.equals(normalized)) { in ServletStyleUriPatternMatcher() 90 + normalized in ServletStyleUriPatternMatcher()
|
/external/deqp/framework/delibs/debase/ |
D | deInt32.c | 152 deUint32 normalized = (deUint32)a << shift; /* Highest bit is always 1. */ in deRcp32() local 153 …int lookupNdx = (normalized >> (31 - RCP_LUT_BITS)) & ((1<<RCP_LUT_BITS)-1); /* Discard high bit… in deRcp32() 165 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32() 169 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32()
|
/external/icu/icu4c/source/i18n/ |
D | uitercollationiterator.cpp | 133 } else if(state >= IN_NORM_ITER_AT_LIMIT && pos != normalized.length()) { in handleNextCE32() 134 c = normalized[pos++]; in handleNextCE32() 154 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate() 156 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate() 194 } else if(state >= IN_NORM_ITER_AT_LIMIT && pos != normalized.length()) { in nextCodePoint() 195 c = normalized.char32At(pos); in nextCodePoint() 248 c = normalized.char32At(pos - 1); in previousCodePoint() 279 (state >= IN_NORM_ITER_AT_LIMIT && pos == normalized.length())); in switchToForward() 424 pos = normalized.length(); in previousSegment() 444 nfcImpl.decompose(s, normalized, errorCode); in normalize()
|
D | nortrans.cpp | 138 UnicodeString normalized; in handleTransliterate() local 156 fNorm2.normalize(segment, normalized, errorCode); in handleTransliterate() 160 if(segment != normalized) { in handleTransliterate() 162 text.handleReplaceBetween(prev, start, normalized); in handleTransliterate() 165 int32_t delta = normalized.length() - (start - prev); in handleTransliterate()
|
D | utf8collationiterator.cpp | 211 } else if(state == IN_NORMALIZED && pos != normalized.length()) { in handleNextCE32() 212 c = normalized[pos++]; in handleNextCE32() 248 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate() 250 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate() 292 } else if(state == IN_NORMALIZED && pos != normalized.length()) { in nextCodePoint() 293 c = normalized.char32At(pos); in nextCodePoint() 331 c = normalized.char32At(pos - 1); in previousCodePoint() 362 (state == IN_NORMALIZED && pos == normalized.length())); in switchToForward() 503 pos = normalized.length(); in previousSegment() 523 nfcImpl.decompose(s, normalized, errorCode); in normalize()
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_ExtractGlimpse.pbtxt | 41 name: "normalized" 43 indicates if the offset coordinates are normalized. 73 The argument `normalized` and `centered` controls how the windows are built: 75 * If the coordinates are normalized but not centered, 0.0 and 1.0 78 * If the coordinates are both normalized and centered, they range from 82 * If the coordinates are not normalized they are interpreted as
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NormalizationTransliterator.java | 105 StringBuilder normalized = new StringBuilder(); in handleTransliterate() local 123 norm2.normalize(segment, normalized); in handleTransliterate() 124 if(!Normalizer2Impl.UTF16Plus.equal(segment, normalized)) { in handleTransliterate() 126 text.replace(prev, start, normalized.toString()); in handleTransliterate() 129 int delta = normalized.length() - (start - prev); in handleTransliterate()
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
D | NormalizationTransliterator.java | 104 StringBuilder normalized = new StringBuilder(); in handleTransliterate() local 122 norm2.normalize(segment, normalized); in handleTransliterate() 123 if(!Normalizer2Impl.UTF16Plus.equal(segment, normalized)) { in handleTransliterate() 125 text.replace(prev, start, normalized.toString()); in handleTransliterate() 128 int delta = normalized.length() - (start - prev); in handleTransliterate()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | CorrelatedRandomVectorGenerator.java | 73 private final double[] normalized; field in CorrelatedRandomVectorGenerator 111 normalized = new double[rank]; in CorrelatedRandomVectorGenerator() 139 normalized = new double[rank]; in CorrelatedRandomVectorGenerator() 288 normalized[i] = generator.nextNormalizedDouble(); 296 correlated[i] += root.getEntry(i, j) * normalized[j];
|
/external/python/dateutil/dateutil/test/ |
D | test_relativedelta.py | 457 self.assertEqual(rd1.normalized(), relativedelta(days=2, hours=18)) 462 self.assertEqual(rd2.normalized(), 469 self.assertEqual(rd1.normalized(), relativedelta(hours=1, minutes=30)) 474 self.assertEqual(rd2.normalized(), 481 self.assertEqual(rd1.normalized(), 487 self.assertEqual(rd2.normalized(), 493 self.assertEqual(rd1.normalized(), 499 self.assertEqual(rd1.normalized(), 504 self.assertEqual(rd2.normalized(), 511 self.assertEqual(rd3.normalized(), [all …]
|