- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for randInt (0.17 sec)
-
src/math/big/int_test.go
benchmarkIntSqr(b, n) }) } } func benchmarkDiv(b *testing.B, aSize, bSize int) { var r = rand.New(rand.NewSource(1234)) aa := randInt(r, uint(aSize)) bb := randInt(r, uint(bSize)) if aa.Cmp(bb) < 0 { aa, bb = bb, aa } x := new(Int) y := new(Int) b.ResetTimer() for i := 0; i < b.N; i++ { x.DivMod(aa, bb, y) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py
in_placeholder: Input tensor placeholder. output_tensor: The resulting tensor of the gather operation. """ in_placeholder = array_ops.placeholder(input_type, shape=(6)) filters = np.random.randn(128, 32).astype(np.float32) if use_variable_for_filter: filters = variables.Variable(filters) output_tensor = array_ops.gather_v2(filters, in_placeholder) return in_placeholder, output_tensor
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 51.2K bytes - Viewed (0) -
cmd/test-utils_test.go
} // nextSuffix - provides a new unique suffix every time the function is called. func nextSuffix() string { randmu.Lock() r := randN // Initial seed required, generate one. if r == 0 { r = reseed() } // constants from Numerical Recipes r = r*1664525 + 1013904223 randN = r randmu.Unlock() return strconv.Itoa(int(1e9 + r%1e9))[1:] } // isSameType - compares two object types via reflect.TypeOf
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 76.9K bytes - Viewed (0) -
cmd/iam.go
// // - if baseInterval=10m, then 5m <= waitInterval() < 15m waitInterval := func() time.Duration { // Calculate a random value such that 0 <= value < baseInterval randAmt := time.Duration(r.Float64() * float64(baseInterval)) return baseInterval/2 + randAmt } timer := time.NewTimer(waitInterval()) defer timer.Stop() for { select { case <-timer.C:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 71.9K bytes - Viewed (0)