/external/tensorflow/tensorflow/python/data/benchmarks/ |
D | meta_benchmark.py | 83 def report(self, deltas): argument 86 deltas = np.array(deltas) / self.iters 88 deltas = deltas[5:] 90 median = np.median(deltas) 91 mean = np.mean(deltas) 92 min_val = np.min(deltas) 93 max_val = np.max(deltas) 105 deltas = [] 108 …deltas.append(timeit.timeit(lambda: next(iterator), number=self.iters)) # pylint: disable=cell-va… 110 self.report(deltas) [all …]
|
/external/fonttools/Tests/ttLib/tables/ |
D | TupleVariation_test.py | 197 tup, deltas, _ = var.compile(axisTags, sharedPeakIndices, 204 hexencode(deltas)) 212 tup, deltas, _ = var.compile(axisTags, sharedPeakIndices, 219 hexencode(deltas)) 227 tup, deltas, _ = var.compile(axisTags, sharedPeakIndices, 235 hexencode(deltas)) 243 tuple, deltas, _ = var.compile(axisTags, 252 hexencode(deltas)) 258 tup, deltas, _ = var.compile(axisTags=["wght", "wdth"], 265 hexencode(deltas)) [all …]
|
/external/fonttools/Lib/fontTools/varLib/ |
D | varStore.py | 88 deltas = self._model.getDeltas(master_values) 89 base = otRound(deltas.pop(0)) 90 return base, self.storeDeltas(deltas) 92 def storeDeltas(self, deltas): argument 96 deltas = [otRound(d) for d in deltas] 97 if len(deltas) == len(self._supports) + 1: 98 deltas = tuple(deltas[1:]) 100 assert len(deltas) == len(self._supports) 101 deltas = tuple(deltas) 103 varIdx = self._cache.get(deltas) [all …]
|
D | models.py | 368 def interpolateFromDeltasAndScalars(deltas, scalars): argument 370 assert len(deltas) == len(scalars) 371 for i,(delta,scalar) in enumerate(zip(deltas, scalars)): 380 def interpolateFromDeltas(self, loc, deltas): argument 382 return self.interpolateFromDeltasAndScalars(deltas, scalars) 385 deltas = self.getDeltas(masterValues) 386 return self.interpolateFromDeltas(loc, deltas) 389 deltas = self.getDeltas(masterValues) 390 return self.interpolateFromDeltasAndScalars(deltas, scalars)
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | TupleVariation.py | 313 def compileDeltaValues_(deltas): argument 331 while pos < len(deltas): 332 value = deltas[pos] 334 pos = TupleVariation.encodeDeltaRunAsZeroes_(deltas, pos, stream) 336 pos = TupleVariation.encodeDeltaRunAsBytes_(deltas, pos, stream) 338 pos = TupleVariation.encodeDeltaRunAsWords_(deltas, pos, stream) 342 def encodeDeltaRunAsZeroes_(deltas, offset, stream): argument 345 numDeltas = len(deltas) 346 while pos < numDeltas and runLength < 64 and deltas[pos] == 0: 354 def encodeDeltaRunAsBytes_(deltas, offset, stream): argument [all …]
|
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/ |
D | autotune_benchmark.py | 54 deltas = [] 62 deltas.append(end - start) 66 wall_time=np.median(deltas), 68 return np.median(deltas) 93 deltas = [] 101 deltas.append(end - start) 105 wall_time=np.median(deltas), 107 return np.median(deltas) 131 deltas = [] 139 deltas.append(end - start) [all …]
|
D | optimize_benchmark.py | 60 deltas = [] 66 deltas.append(end - start) 68 median_wall_time = np.median(deltas) / 100 101 deltas = [] 107 deltas.append(end - start) 109 median_wall_time = np.median(deltas) / 100 142 deltas = [] 148 deltas.append(end - start) 150 median_wall_time = np.median(deltas) / 100
|
D | choose_fastest_benchmark.py | 70 deltas = [] 77 deltas.append(end - start) 78 median_wall_time = np.median(deltas) / n 92 deltas = [] 98 deltas.append(end - start) 100 median_wall_time = np.median(deltas) / 100
|
D | unbatch_benchmark.py | 53 deltas = [] 61 deltas.append((end - start) / elems_per_trial) 63 median_wall_time = np.median(deltas) 90 deltas = [] 98 deltas.append((end - start) / elems_per_trial) 100 median_wall_time = np.median(deltas)
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ConcurrentHashMultisetBasherTest.java | 77 int[] deltas = new int[3]; in testAddAndRemove() local 80 for (int i = 0; i < deltas.length; i++) { in testAddAndRemove() 81 deltas[i] += taskDeltas[i]; in testAddAndRemove() 91 assertEquals("Counts not as expected", Ints.asList(deltas), actualCounts); in testAddAndRemove() 115 int[] deltas = new int[nKeys]; in call() local 125 deltas[keyIndex] += delta; in call() 131 deltas[keyIndex] += (newValue - oldValue); in call() 138 deltas[keyIndex] += (newValue - oldValue); in call() 145 deltas[keyIndex] -= Math.min(delta, oldValue); in call() 151 deltas[keyIndex] -= delta; in call() [all …]
|
/external/libchrome/base/metrics/ |
D | histogram_delta_serialization_unittest.cc | 20 std::vector<std::string> deltas; in TEST() local 22 serializer.PrepareAndSerializeDeltas(&deltas, true); in TEST() 23 EXPECT_TRUE(deltas.empty()); in TEST() 32 serializer.PrepareAndSerializeDeltas(&deltas, true); in TEST() 33 EXPECT_FALSE(deltas.empty()); in TEST() 35 HistogramDeltaSerialization::DeserializeAndAddSamples(deltas); in TEST() 46 HistogramDeltaSerialization::DeserializeAndAddSamples(deltas); in TEST()
|
/external/ltp/testcases/realtime/func/measurement/ |
D | rdtsc-latency.c | 102 unsigned long long deltas[ITERATIONS]; in main() local 148 deltas[i] = (tsc_minus(tsc_a, tsc_b) * tsc_period) / 1000; /* tsc period is in ps */ in main() 149 if (i == 0 || deltas[i] < min) in main() 150 min = deltas[i]; in main() 151 if (deltas[i] > max) in main() 152 max = deltas[i]; in main() 153 avg += deltas[i]; in main()
|
/external/harfbuzz_ng/src/ |
D | hb-cff2-interp-cs.hh | 41 deltas.init (); in init() 47 deltas.fini_deep (); in fini() 59 deltas.resize (numBlends); in set_blends() 61 deltas[i] = blends_[i]; in set_blends() 64 bool blending () const { return deltas.len > 0; } in blending() 68 deltas.resize (0); in reset_blends() 73 hb_vector_t<Number> deltas; member 170 if (likely (scalars.len == arg.deltas.len)) in blend_arg() 175 v += (double)scalars[i] * arg.deltas[i].to_real (); in blend_arg() 178 arg.deltas.resize (0); in blend_arg()
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | refleak.py | 83 def check_rc_deltas(deltas): argument 96 return all(delta >= 1 for delta in deltas) 98 def check_fd_deltas(deltas): argument 99 return any(deltas) 102 for deltas, item_name, checker in [ 108 deltas = deltas[nwarmup:] 109 if checker(deltas): 111 test, deltas, item_name, sum(deltas))
|
/external/tensorflow/tensorflow/core/ops/ |
D | ragged_math_ops.cc | 48 ShapeHandle deltas = c->input(2); in RaggedRangeShapeFn() local 51 TF_RETURN_IF_ERROR(c->WithRankAtMost(deltas, 1, &deltas)); in RaggedRangeShapeFn() 61 if (c->Rank(deltas) == 1) { in RaggedRangeShapeFn() 62 TF_RETURN_IF_ERROR(c->Merge(c->Dim(deltas, 0), dim, &dim)); in RaggedRangeShapeFn() 70 c->Rank(deltas) == 0) { in RaggedRangeShapeFn()
|
/external/tensorflow/tensorflow/examples/android/jni/object_tracking/ |
D | frame_pair.cc | 37 static Point2f deltas[kMaxKeypoints]; in AdjustBox() local 43 FillTranslations(deltas); in AdjustBox() 45 const Point2f translation = GetWeightedMedian(weights, deltas); in AdjustBox() 52 FillScales(old_center, translation, weights, deltas); in AdjustBox() 71 const float scale_factor = GetWeightedMedianScale(weights, deltas); in AdjustBox() 223 const float* const weights, const Point2f* const deltas) const { in GetWeightedMedian() 235 weighted_deltas[i].delta = deltas[i].x; in GetWeightedMedian() 255 weighted_deltas[i].delta = deltas[i].y; in GetWeightedMedian() 269 const float* const weights, const Point2f* const deltas) const { in GetWeightedMedianScale() 281 weighted_deltas[i].delta = deltas[i].x; in GetWeightedMedianScale() [all …]
|
/external/dng_sdk/source/ |
D | dng_misc_opcodes.cpp | 864 uint32 deltas = SafeUint32DivideUp (fAreaSpec.Area ().H (), in dng_opcode_DeltaPerRow() local 867 if (deltas != stream.Get_uint32 ()) in dng_opcode_DeltaPerRow() 872 if (dataSize != dng_area_spec::kDataSize + 4 + deltas * 4) in dng_opcode_DeltaPerRow() 877 fTable.Reset (host.Allocate (SafeUint32Mult (deltas, in dng_opcode_DeltaPerRow() 882 for (uint32 j = 0; j < deltas; j++) in dng_opcode_DeltaPerRow() 892 printf ("Count: %u\n", (unsigned) deltas); in dng_opcode_DeltaPerRow() 894 for (uint32 k = 0; k < deltas && k < gDumpLineLimit; k++) in dng_opcode_DeltaPerRow() 899 if (deltas > gDumpLineLimit) in dng_opcode_DeltaPerRow() 901 printf (" ... %u deltas skipped\n", (unsigned) (deltas - gDumpLineLimit)); in dng_opcode_DeltaPerRow() 915 uint32 deltas = SafeUint32DivideUp (fAreaSpec.Area ().H (), in PutData() local [all …]
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_RaggedRange.pbtxt | 13 name: "deltas" 14 description: "The deltas of each range." 31 `result[i] = range(starts[i], limits[i], deltas[i])`. 35 ... starts=[2, 5, 8], limits=[3, 5, 12], deltas=1) 43 The input tensors `starts`, `limits`, and `deltas` may be scalars or vectors.
|
/external/skia/src/core/ |
D | SkScan_DAAPath.cpp | 82 SkFixed nextX, Deltas* deltas) { // rowHeight=fullAlpha in add_coverage_delta_segment() argument 97 deltas->addDelta(L, y, rowHeight * sign); in add_coverage_delta_segment() 106 deltas->addDelta(L, y, alpha * sign); in add_coverage_delta_segment() 107 deltas->addDelta(L + 1, y, (rowHeight - alpha) * sign); in add_coverage_delta_segment() 116 deltas->addDelta(L, y, alpha1 * sign); in add_coverage_delta_segment() 117 deltas->addDelta(L + 1, y, (alpha2 - alpha1) * sign); in add_coverage_delta_segment() 118 deltas->addDelta(L + 2, y, (rowHeight - alpha2) * sign); in add_coverage_delta_segment() 133 deltas->addDelta(L, y, alpha0 * sign); in add_coverage_delta_segment() 134 deltas->addDelta(L + 1, y, (alpha1 - alpha0) * sign); in add_coverage_delta_segment() 136 deltas->addDelta(L + i, y, dY * sign); // the increment is always a rect of height = dY in add_coverage_delta_segment() [all …]
|
D | SkBlitter.cpp | 105 void SkBlitter::blitCoverageDeltas(SkCoverageDeltaList* deltas, const SkIRect& clip, in blitCoverageDeltas() argument 113 bool canUseMask = !deltas->forceRLE() && in blitCoverageDeltas() 115 const SkAntiRect& antiRect = deltas->getAntiRect(); in blitCoverageDeltas() 118 int top = SkTMax(deltas->top(), clip.fTop); in blitCoverageDeltas() 119 int bottom = SkTMin(deltas->bottom(), clip.fBottom); in blitCoverageDeltas() 163 if (canUseMask && !deltas->sorted(y) && deltas->count(y) << 3 >= clip.width()) { in blitCoverageDeltas() 168 SkIRect rowIR = SkIRect::MakeLTRB(SkTMin(clip.fLeft, deltas->left()), y, in blitCoverageDeltas() 169 SkTMax(clip.fRight, deltas->right()), y + 1); in blitCoverageDeltas() 172 for(int i = 0; i < deltas->count(y); ++i) { in blitCoverageDeltas() 173 const SkCoverageDelta& delta = deltas->getDelta(y, i); in blitCoverageDeltas() [all …]
|
/external/skqp/src/core/ |
D | SkScan_DAAPath.cpp | 82 SkFixed nextX, Deltas* deltas) { // rowHeight=fullAlpha in add_coverage_delta_segment() argument 97 deltas->addDelta(L, y, rowHeight * sign); in add_coverage_delta_segment() 106 deltas->addDelta(L, y, alpha * sign); in add_coverage_delta_segment() 107 deltas->addDelta(L + 1, y, (rowHeight - alpha) * sign); in add_coverage_delta_segment() 116 deltas->addDelta(L, y, alpha1 * sign); in add_coverage_delta_segment() 117 deltas->addDelta(L + 1, y, (alpha2 - alpha1) * sign); in add_coverage_delta_segment() 118 deltas->addDelta(L + 2, y, (rowHeight - alpha2) * sign); in add_coverage_delta_segment() 133 deltas->addDelta(L, y, alpha0 * sign); in add_coverage_delta_segment() 134 deltas->addDelta(L + 1, y, (alpha1 - alpha0) * sign); in add_coverage_delta_segment() 136 deltas->addDelta(L + i, y, dY * sign); // the increment is always a rect of height = dY in add_coverage_delta_segment() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
D | transport_feedback_unittest.cc | 114 std::vector<int64_t> deltas = feedback_->GetReceiveDeltasUs(); in VerifyInternal() local 115 ASSERT_EQ(expected_deltas_.size(), deltas.size()); in VerifyInternal() 117 EXPECT_EQ(expected_deltas_[i], deltas[i]) << "Delta mismatch @ " << i; in VerifyInternal() 122 int64_t* deltas) { in GenerateDeltas() argument 131 deltas[i] = offset + (last_seq * default_delta_); in GenerateDeltas() 343 std::vector<int64_t> deltas = feedback.GetReceiveDeltasUs(); in TEST() local 347 for (int64_t delta : deltas) { in TEST() 465 for (int deltas = 0; deltas <= kOneBitVectorCapacity + 1; ++deltas) { in TEST() local 468 for (int i = 0; i < deltas; ++i) in TEST() 470 feedback.WithReceivedPacket(deltas, deltas * 1000 + kLargeTimeDelta); in TEST()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | ragged_range_op.cc | 67 const auto& deltas = deltas_in.flat<T>(); in Compute() local 79 T delta = broadcast_deltas ? deltas(0) : deltas(row); in Compute() 95 T delta = broadcast_deltas ? deltas(0) : deltas(row); in Compute()
|
D | sdca_internal.h | 198 TTypes<float>::Matrix deltas) in FeatureWeightsDenseStorage() argument 199 : nominals_(nominals), deltas_(deltas) { in FeatureWeightsDenseStorage() 200 CHECK_GT(deltas.rank(), 1); in FeatureWeightsDenseStorage() 212 TTypes<float>::Matrix deltas() const { return deltas_; } in deltas() function 234 TTypes<float>::Matrix deltas) in FeatureWeightsSparseStorage() argument 235 : nominals_(nominals), deltas_(deltas) { in FeatureWeightsSparseStorage() 255 float deltas(const int class_id, const int64 index) const { in deltas() function
|
/external/webp/src/dec/ |
D | alpha_dec.c | 117 const uint8_t* deltas = dec->alpha_data_ + ALPHA_HEADER_LEN + row * width; in ALPHDecode() local 119 assert(deltas <= &dec->alpha_data_[dec->alpha_data_size_]); in ALPHDecode() 123 WebPUnfilters[alph_dec->filter_](prev_line, deltas, dst, width); in ALPHDecode() 126 deltas += width; in ALPHDecode() 130 memcpy(dst, deltas, width * sizeof(*dst)); in ALPHDecode() 133 deltas += width; in ALPHDecode()
|