Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 169 for allocates (0.09 sec)

  1. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        String toTest =
            MoreObjects.toStringHelper(new TestClass())
                .omitEmptyValues()
                .add("field1", "Hello")
                .add("field2", CharBuffer.allocate(0))
                .toString();
        assertEquals("TestClass{field1=Hello}", toTest);
      }
    
      public void testToStringHelperWithArrays() {
        String[] strings = {"hello", "world"};
        int[] ints = {2, 42};
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 21:19:18 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/PairedStats.java

       *
       * <p><b>Note:</b> No guarantees are made regarding stability of the representation between
       * versions.
       */
      public byte[] toByteArray() {
        ByteBuffer buffer = ByteBuffer.allocate(BYTES).order(ByteOrder.LITTLE_ENDIAN);
        xStats.writeTo(buffer);
        yStats.writeTo(buffer);
        buffer.putDouble(sumOfProductsOfDeltas);
        return buffer.array();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

      // Update the vector with information from `input_tensors` if provided.
      if (input_tensors != nullptr) {
        // Note that we take the address of the elements in `all_input_tensors`
        // below. Allocate enough space so that no reallocation happens, which will
        // make the pointers invalid.
        all_input_tensors.reserve(num_inputs);
        for (int i = 0; i < num_inputs; ++i) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  4. src/main/resources/esclient.xml

    		<property name="settings">
    			{"http.cors.enabled":"true",
    			 "http.cors.allow-origin":"*",
    			 "discovery.type":"single-node",
    			 "cluster.allocator.existing_shards_allocator.batch_enabled":"true",
    			 <!--
    			 "node.name":"search_engine",
    			 "discovery.seed_hosts":"search_engine",
    			 "cluster.initial_cluster_manager_nodes":"search_engine",
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Oct 21 12:20:52 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device.cc

      std::vector<MaybeParallelTensorOwned> typed_outputs(
          std::move(maybe_typed_outputs.value()));
    
      if (typed_outputs.size() > *num_outputs) {
        TF_SetStatus(status, TF_INTERNAL,
                     "The allocated output buffer was too small.");
        return;
      }
    
      for (int i = 0; i < typed_outputs.size(); ++i) {
        MaybeParallelTensorOwned typed_output(std::move(typed_outputs[i]));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. internal/ringbuffer/ring_buffer.go

    }
    
    // Bytes returns all available read bytes.
    // It does not move the read pointer and only copy the available data.
    // If the dst is big enough it will be used as destination,
    // otherwise a new buffer will be allocated.
    func (r *RingBuffer) Bytes(dst []byte) []byte {
    	r.mu.Lock()
    	defer r.mu.Unlock()
    	getDst := func(n int) []byte {
    		if cap(dst) < n {
    			return make([]byte, n)
    		}
    		return dst[:n]
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/math/BigIntegerMath.java

        // If the factorial is small enough, just use LongMath to do it.
        if (n < LongMath.factorials.length) {
          return BigInteger.valueOf(LongMath.factorials[n]);
        }
    
        // Pre-allocate space for our list of intermediate BigIntegers.
        int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING);
        ArrayList<BigInteger> bignums = new ArrayList<>(approxSize);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  8. common/scripts/metallb-native.yaml

        - jsonPath: .spec.addresses
          name: Addresses
          type: string
        name: v1beta1
        schema:
          openAPIV3Schema:
            description: IPAddressPool represents a pool of IP addresses that can be allocated
              to LoadBalancer services.
            properties:
              apiVersion:
                description: 'APIVersion defines the versioned schema of this representation
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Feb 23 23:56:31 UTC 2024
    - 63.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/Crc32cHashFunction.java

          csum ^= crc;
          for (int i = 0; i < 4; i++) {
            csum = (csum >>> 8) ^ BYTE_TABLE[csum & 0xFF];
          }
          return csum;
        }
    
        private static final ByteBuffer EMPTY = ByteBuffer.allocate(0);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 21.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Chars.java

            result);
        return (int) result;
      }
    
      /**
       * Returns a big-endian representation of {@code value} in a 2-element byte array; equivalent to
       * {@code ByteBuffer.allocate(2).putChar(value).array()}. For example, the input value {@code
       * '\\u5432'} would yield the byte array {@code {0x54, 0x32}}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top