Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 61 for odd (0.22 sec)

  1. guava/src/com/google/common/collect/CompactHashMap.java

      }
    
      /** Resizes the entries storage if necessary. */
      private void resizeMeMaybe(int newSize) {
        int entriesSize = requireEntries().length;
        if (newSize > entriesSize) {
          // 1.5x but round up to nearest odd (this is optimal for memory consumption on Android)
          int newCapacity =
              Math.min(CompactHashing.MAX_SIZE, (entriesSize + Math.max(1, entriesSize >>> 1)) | 1);
          if (newCapacity != entriesSize) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  2. src/archive/tar/common.go

    // zero value of sparseHoles logically represents a normal file (i.e., there are
    // no holes in it). On the other hand, the zero value of sparseDatas implies
    // that the file has no data in it, which is rather odd.
    //
    // As an example, if the underlying raw file contains the 10-byte data:
    //
    //	var compactFile = "abcdefgh"
    //
    // And the sparse map has the following entries:
    //
    //	var spd sparseDatas = []sparseEntry{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  3. android/guava/src/com/google/common/collect/CompactHashMap.java

      }
    
      /** Resizes the entries storage if necessary. */
      private void resizeMeMaybe(int newSize) {
        int entriesSize = requireEntries().length;
        if (newSize > entriesSize) {
          // 1.5x but round up to nearest odd (this is optimal for memory consumption on Android)
          int newCapacity =
              Math.min(CompactHashing.MAX_SIZE, (entriesSize + Math.max(1, entriesSize >>> 1)) | 1);
          if (newCapacity != entriesSize) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Ordering.java

       * Exception thrown by a {@link Ordering#explicit(List)} or {@link Ordering#explicit(Object,
       * Object[])} comparator when comparing a value outside the set of values it can compare.
       * Extending {@link ClassCastException} may seem odd, but it is required.
       */
      @VisibleForTesting
      static class IncomparableValueException extends ClassCastException {
        final Object value;
    
        IncomparableValueException(Object value) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/tape.h

          int64_t tensor_id = output_tensors[i].GetID();
          auto existing = accumulated_gradients_.find(tensor_id);
          if (existing != accumulated_gradients_.end()) {
            // This is a somewhat odd case to be in, since it means we have two
            // operations which supposedly both created the same Tensor. It comes up
            // in recompute_grad, where the gradients have the same value. However,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  6. operator/cmd/mesh/manifest-generate_test.go

    		{legacyLabel, empty, "istiod"},
    		{legacyLabel, objEnabled, "istiod"},
    		{legacyAndRevLabel, empty, "istiod"},
    		{legacyAndRevLabel, objEnabled, "istiod"},
    
    		// The behavior of these is a bit odd; they are explicitly selecting a revision but getting
    		// the default Unfortunately, the legacy webhook selectors would select these, cause
    		// duplicate injection, so we defer to the namespace label.
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

       * the exception thrown.
       *
       * <p>As we iterate from {@code 0} to {@code nThreads}, threads with an even index will call
       * {@code getUnchecked}, and threads with an odd index will call {@code get}. If the cache throws
       * exceptions, this difference may be visible in the returned List.
       */
      private static <K> List<Object> doConcurrentGet(
          final LoadingCache<K, ?> cache,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    			}
    			sb.WriteString(gofmtLine(rtype))
    			result = true
    		}
    
    		// Add the second result type, if any.
    		if twoResults {
    			if name.FuncType.Result == nil {
    				// An explicit void result looks odd but it
    				// seems to be how cgo has worked historically.
    				sb.WriteString("_Ctype_void")
    			}
    			sb.WriteString(", error)")
    		}
    	}
    
    	sb.WriteString("{ ")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    		[]byte("\xc0a\xc0"),
    		[]byte("\xc0a\xc0cd"),
    		[]byte("ab\xc0a\xc0")},
    	{not(isValidRune), "\xc0a\xc0",
    		[]byte("a"),
    		[]byte("a\xc0"),
    		[]byte("\xc0a")},
    	// The nils returned by TrimLeftFunc are odd behavior, but we need
    	// to preserve backwards compatibility.
    	{isSpace, "",
    		nil,
    		nil,
    		[]byte("")},
    	{isSpace, " ",
    		nil,
    		nil,
    		[]byte("")},
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

       * the exception thrown.
       *
       * <p>As we iterate from {@code 0} to {@code nThreads}, threads with an even index will call
       * {@code getUnchecked}, and threads with an odd index will call {@code get}. If the cache throws
       * exceptions, this difference may be visible in the returned List.
       */
      private static <K> List<Object> doConcurrentGet(
          final LoadingCache<K, ?> cache,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
Back to top