- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 310 for roundup (0.3 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils.cc
if (!std::isfinite(double_multiplier) || double_multiplier <= 0) { return failure(); } const double fraction = std::frexp(double_multiplier, &shift); quantized_fraction = static_cast<int32_t>(std::round(fraction * (1L << 15))); // Clip extreme values. These are more than enough to overflow int8, the // storage type for quantized values, and the final values will be clamped // no matter what.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go
// TODO(rfindley): return a useful error message. return nil, fmt.Errorf("%s: corrupt counter file", filename) } f := &File{ Meta: make(map[string]string), Count: make(map[string]uint64), } np := round(len(hdrPrefix), 4) hdrLen := *(*uint32)(unsafe.Pointer(&data[np])) if hdrLen > pageSize { return corrupt() } meta := data[np+4 : hdrLen] if i := bytes.IndexByte(meta, 0); i >= 0 { meta = meta[:i] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 14:38:01 UTC 2024 - 1.8K bytes - Viewed (0) -
android/guava/src/com/google/common/math/Quantiles.java
// Since scale is a positive int, index is in [0, scale], and (dataset.length - 1) is a // non-negative int, we can do long-arithmetic on index * (dataset.length - 1) / scale to get // a rounded ratio and a remainder which can be expressed as ints, without risk of overflow: int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); int remainder = (int) (numerator - (long) quotient * scale);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 12 17:02:53 UTC 2023 - 29.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_chatty_parallel_success.txt
// to some constant. parallel := flag.Lookup("test.parallel").Value.(flag.Getter).Get().(int) // ready is a synchronization mechanism that causes subtests to execute // round robin. ready := make([]chan bool, parallel) for i := range ready { ready[i] = make(chan bool, 1) } ready[0] <- true for i := range ready { i := i t.Run(fmt.Sprintf("sub-%d", i), func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 19:50:36 UTC 2022 - 1.9K bytes - Viewed (0) -
src/net/dnsconfig.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 2.2K bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalar_test.go
t.Errorf("failed bytes->scalar->bytes round-trip: %v", err) } f2 := func(sc1, sc2 Scalar) bool { if _, err := sc2.SetCanonicalBytes(sc1.Bytes()); err != nil { return false } return sc1 == sc2 } if err := quick.Check(f2, quickCheckConfig(1024)); err != nil { t.Errorf("failed scalar->bytes->scalar round-trip: %v", err) } b := scalarMinusOneBytes b[31] += 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 7.6K bytes - Viewed (0) -
src/sort/search_test.go
if pos != tt.wantPos || found != tt.wantFound { t.Errorf("Find got (%v, %v), want (%v, %v)", pos, found, tt.wantPos, tt.wantFound) } }) } } // log2 computes the binary logarithm of x, rounded up to the next integer. // (log2(0) == 0, log2(1) == 0, log2(2) == 1, log2(3) == 2, etc.) func log2(x int) int { n := 0 for p := 1; p < x; p += p { // p == 2**n n++ } // p/2 < x <= p == 2**n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 14:42:13 UTC 2022 - 6.8K bytes - Viewed (0) -
testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9.4K bytes - Viewed (0) -
cluster/images/etcd/migrate/versions_test.go
} if vp.Equals(c.version) != c.match { t.Errorf("Expected '%s' to be parsed as '%+v', got '%+v'", c.versionTxt, c.version, vp) } if vp.String() != c.versionTxt { t.Errorf("Expected round trip serialization back to '%s', got '%s'", c.versionTxt, vp.String()) } } unparsables := []string{ "1.1/etcd3", "1.1.1.1/etcd3", "1.1.1/etcd4", } for _, unparsable := range unparsables {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 28 07:33:23 UTC 2022 - 2.6K bytes - Viewed (0) -
guava/src/com/google/common/base/Stopwatch.java
return isRunning ? ticker.read() - startTick + elapsedNanos : elapsedNanos; } /** * Returns the current elapsed time shown on this stopwatch, expressed in the desired time unit, * with any fraction rounded down. * * <p><b>Note:</b> the overhead of measurement can be more than a microsecond, so it is generally * not useful to specify {@link TimeUnit#NANOSECONDS} precision here. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 23 15:09:35 UTC 2023 - 9.2K bytes - Viewed (0)