Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 829 for randPod (3.47 sec)

  1. tensorflow/compiler/mlir/tfrt/tests/mlrt/async_while.mlir

    }
    
    // CHECK-LABEL: func.func private @"random/while_body/TfMlrtAsyncWhileBody"(%arg0: tensor<i32>, %arg1: tensor<i32>) -> tensor<i32> {
    func.func private @"random/while_body/TfMlrtAsyncWhileBody"(%arg0: tensor<i32>, %arg1: tensor<i32>) -> tensor<i32> {
      %0 = "tf.AddV2"(%arg0, %arg1) : (tensor<i32>, tensor<i32>) -> tensor<i32>
      return %0: tensor<i32>
    }
    
    // CHECK-LABEL: func.func private @"random/while_cond"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

      // @Param({"4", "8", "64", "1024", "1048576", "1048577", "6710884", "6710883"})
      @Param({"4", "8", "64", "1024"})
      private int length;
    
      @BeforeExperiment
      void setUp() throws Exception {
        Random r = new Random();
        ba1 = new byte[length];
        r.nextBytes(ba1);
        ba2 = Arrays.copyOf(ba1, ba1.length);
        // Differ at the last element
        ba3 = Arrays.copyOf(ba1, ba1.length);
        ba4 = Arrays.copyOf(ba1, ba1.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  3. pkg/kube/controllers/common_test.go

    }
    
    func TestExtract(t *testing.T) {
    	obj := &corev1.Pod{}
    	tombstone := cache.DeletedFinalStateUnknown{
    		Obj: obj,
    	}
    	random := time.Time{}
    
    	t.Run("extract typed", func(t *testing.T) {
    		assert.Equal(t, Extract[*corev1.Pod](obj), obj)
    		assert.Equal(t, Extract[*corev1.Pod](random), nil)
    		assert.Equal(t, Extract[*corev1.Pod](tombstone), obj)
    	})
    
    	t.Run("extract object", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 15 15:34:49 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      private static ImmutableList<Double> generatePseudorandomDataset() {
        Random random = new Random(2211275185798966364L);
        ImmutableList.Builder<Double> largeDatasetBuilder = ImmutableList.builder();
        for (int i = 0; i < PSEUDORANDOM_DATASET_SIZE; i++) {
          largeDatasetBuilder.add(random.nextGaussian());
        }
        return largeDatasetBuilder.build();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

      int datasetSize;
    
      @Param QuantilesAlgorithm algorithm;
    
      private double[][] datasets = new double[0x100][];
    
      @BeforeExperiment
      void setUp() {
        Random rng = new Random();
        for (int i = 0; i < 0x100; i++) {
          datasets[i] = new double[datasetSize];
          for (int j = 0; j < datasetSize; j++) {
            datasets[i][j] = rng.nextDouble();
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

          connection: Connection,
        ) {
          if (random != null) {
            val sslSocket = connection.socket() as SSLSocket
            val session = sslSocket.session
    
            val masterSecretHex =
              session.masterSecret?.encoded?.toByteString()
                ?.hex()
    
            if (masterSecretHex != null) {
              val keyLog = "CLIENT_RANDOM $random $masterSecretHex"
    
              if (verbose) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. cmd/benchmark-utils_test.go

    	const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    	// seeding the random number generator.
    	rand.Seed(UTCNow().UnixNano())
    	// pick a character randomly.
    	return []byte{letterBytes[rand.Intn(len(letterBytes))]}
    }
    
    // picks a random byte and repeats it to size bytes.
    func generateBytesData(size int) []byte {
    	// repeat the random character chosen size
    	return bytes.Repeat(getRandomByte(), size)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  8. src/crypto/internal/randutil/randutil.go

    // to ensure that callers do not depend on non-guaranteed behaviour, e.g.
    // assuming that rsa.GenerateKey is deterministic w.r.t. a given random stream.
    //
    // This does not affect tests that pass a stream of fixed bytes as the random
    // source (e.g. a zeroReader).
    func MaybeReadByte(r io.Reader) {
    	closedChanOnce.Do(func() {
    		closedChan = make(chan struct{})
    		close(closedChan)
    	})
    
    	select {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 07 15:09:25 UTC 2018
    - 927 bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

    import java.util.Map;
    import java.util.Random;
    import java.util.Set;
    import junit.framework.TestCase;
    
    /**
     * Tests that the different algorithms benchmarked in {@link QuantilesBenchmark} are actually all
     * returning more-or-less the same answers.
     */
    public class QuantilesAlgorithmTest extends TestCase {
    
      private static final Random RNG = new Random(82674067L);
      private static final int DATASET_SIZE = 1000;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

      private static final int RANDOM_SEED = new Random().nextInt();
    
      @Param({"10", "1000", "100000", "1000000"})
      private int size;
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      // CRC32
    
      @Benchmark
      byte crc32HashFunction(int reps) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 13 16:19:15 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top