Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 308 for deltas (0.11 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass_test.cc

      })";
    
      CellReader<int64_t> error(kHasTpuPartitionedCallStreamzName);
      CreateModule(kMlirModuleStr);
    
      auto result = Run();
    
      EXPECT_TRUE(result.succeeded());
    
      EXPECT_EQ(error.Delta("true"), 1);
      EXPECT_EQ(error.Delta("false"), 0);
    }
    
    TEST_F(InferenceMetricsPassTest, RecordsFalseForNonTPUPartitionedCallOp) {
      static constexpr char kMlirModuleStr[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/metrics/metrics.go

    	ScrapeTypeEnvoy = "envoy"
    	ScrapeTypeApp   = "application"
    	ScrapeTypeAgent = "agent"
    )
    
    var processStartTime = time.Now()
    
    func RecordStartupTime() {
    	delta := time.Since(processStartTime)
    	startupTime.Record(delta.Seconds())
    	log.Infof("Readiness succeeded in %v", delta)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/MonotonicClockTest.groovy

            then:
            clock.currentTime == START_MILLIS + 15
        }
    
        def "provides current time based on nanoTime delta"() {
            when:
            setNanos(delta)
    
            then:
            clock.currentTime == START_MILLIS + Math.max(0, delta)
    
            where:
            delta << [0, 100, -100]
        }
    
        def "resyncs with system wall clock"() {
            when:
            setNanos(10)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/image/jpeg/writer_test.go

    	if _, ok := m1.(*image.Gray); !ok {
    		t.Errorf("got %T, want *image.Gray", m1)
    	}
    	// Compare the average delta to the tolerance level.
    	want := int64(2 << 8)
    	if got := averageDelta(m0, m1); got > want {
    		t.Errorf("average delta too high; got %d, want <= %d", got, want)
    	}
    }
    
    // averageDelta returns the average delta in RGB space. The two images must
    // have the same bounds.
    func averageDelta(m0, m1 image.Image) int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/atomic_arm.go

    }
    
    // Atomic add and return new value.
    //
    //go:nosplit
    func Xadd(val *uint32, delta int32) uint32 {
    	for {
    		oval := *val
    		nval := oval + uint32(delta)
    		if Cas(val, oval, nval) {
    			return nval
    		}
    	}
    }
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:nosplit
    func Xchg(addr *uint32, v uint32) uint32 {
    	for {
    		old := *addr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go

    			},
    			1})
    	registry := compbasemetrics.NewKubeRegistry()
    	registry.MustRegister(th)
    	var x int
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		delta := (i % 6) + 1
    		now = now.Add(time.Duration(delta) * time.Millisecond)
    		clk.SetTime(now)
    		th.Set(float64(x))
    		x = (x + i) % 60
    	}
    }
    
    func BenchmarkTimingRatioHistogramVecElementSimple(b *testing.B) {
    	b.StopTimer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 16:03:06 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  7. src/internal/runtime/atomic/atomic_ppc64x.go

    //go:build ppc64 || ppc64le
    
    package atomic
    
    import "unsafe"
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    func Xchg(ptr *uint32, new uint32) uint32
    
    //go:noescape
    func Xchg64(ptr *uint64, new uint64) uint64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/atomic_riscv64.go

    // license that can be found in the LICENSE file.
    
    package atomic
    
    import "unsafe"
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    func Xchg(ptr *uint32, new uint32) uint32
    
    //go:noescape
    func Xchg64(ptr *uint64, new uint64) uint64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/MultiLineBuildProgressArea.java

        public void resizeBuildProgressTo(int buildProgressLabelCount) {
            int delta = buildProgressLabelCount - buildProgressLabels.size();
            if (delta <= 0) {
                // We don't support shrinking at the moment
                return;
            }
    
            int row = parkingLabel.getWritePosition().row;
            parkingLabel.scrollDownBy(delta);
            while (delta-- > 0) {
                DefaultRedrawableLabel label = newLabel(row--);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. test/fixedbugs/bug247.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	const (
    		Delta = 100 * 1e6
    		Count = 10
    	)
    	_ = int64(Delta * Count)
    	var i interface{} = Count
    	j := i.(int)
    	if j != Count {
    		println("j=", j)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 365 bytes
    - Viewed (0)
Back to top