Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 141 for rceil (0.06 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters_test.cc

                                          const float max_value,
                                          const float bin_width) {
      const float lower_bound = CalculateLowerBound(min_value, bin_width);
      return std::ceil((max_value - lower_bound) / bin_width);
    }
    
    TEST(CalibrationParametersTest, CalculateBinWidthSmallerThanOne) {
      float bin_width = CalculateBinWidth(/*min_value=*/0.0, /*max_value=*/25.0,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 05 09:09:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/Base64.java

         */
        public static String encode(byte[] bytes) {
            int length = bytes.length;
            if (length == 0) return "";
            StringBuffer buffer =
                    new StringBuffer((int) Math.ceil((double) length / 3d) * 4);
            int remainder = length % 3;
            length -= remainder;
            int block;
            int i = 0;
            while (i < length) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    	}
    	value, isPercent, err := getIntOrPercentValueSafely(intOrPercent)
    	if err != nil {
    		return 0, fmt.Errorf("invalid value for IntOrString: %v", err)
    	}
    	if isPercent {
    		if roundUp {
    			value = int(math.Ceil(float64(value) * (float64(total)) / 100))
    		} else {
    			value = int(math.Floor(float64(value) * (float64(total)) / 100))
    		}
    	}
    	return value, nil
    }
    
    // GetValueFromIntOrPercent was deprecated in favor of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. cmd/warm-backend-minio.go

    	}
    
    	configuredPartSize := minPartSize
    	// Use floats for part size for all calculations to avoid
    	// overflows during float64 to int64 conversions.
    	partSizeFlt := float64(objectSize / maxPartsCount)
    	partSizeFlt = math.Ceil(partSizeFlt/float64(configuredPartSize)) * float64(configuredPartSize)
    
    	// Part size.
    	partSize = int64(partSizeFlt)
    	if partSize == 0 {
    		return minPartSize, nil
    	}
    	return partSize, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_histogram.cc

          CalculateBinWidth(min, max, histogram.size());
      const float collected_lower_bound =
          CalculateLowerBound(min, collected_bin_width);
      const float collected_upper_bound =
          std::ceil(max / collected_bin_width) * collected_bin_width;
    
      // When histogram is not initialized.
      if (hist_freq_.empty()) {
        bin_width_ = collected_bin_width;
        lower_bound_ = collected_lower_bound;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 05 09:09:34 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/math/example_test.go

    	// Output: 0.00
    }
    
    func ExampleSqrt() {
    	const (
    		a = 3
    		b = 4
    	)
    	c := math.Sqrt(a*a + b*b)
    	fmt.Printf("%.1f", c)
    	// Output: 5.0
    }
    
    func ExampleCeil() {
    	c := math.Ceil(1.49)
    	fmt.Printf("%.1f", c)
    	// Output: 2.0
    }
    
    func ExampleFloor() {
    	c := math.Floor(1.51)
    	fmt.Printf("%.1f", c)
    	// Output: 1.0
    }
    
    func ExamplePow() {
    	c := math.Pow(2, 3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  7. pkg/controller/endpointslicemirroring/metrics/cache.go

    }
    
    // numDesiredSlices calculates the number of EndpointSlices that would exist
    // with ideal endpoint distribution.
    func numDesiredSlices(numEndpoints, maxPerSlice int) int {
    	return int(math.Ceil(float64(numEndpoints) / float64(maxPerSlice)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding.go

    // to a hand of the given size.  The result is meaningful only if
    // 1 <= handSize <= deckSize <= 1<<26.
    func RequiredEntropyBits(deckSize, handSize int) int {
    	return int(math.Ceil(math.Log2(float64(deckSize)) * float64(handSize)))
    }
    
    // Dealer contains some necessary parameters and provides some methods for shuffle sharding.
    // Dealer is thread-safe.
    type Dealer struct {
    	deckSize int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 23 08:38:03 UTC 2019
    - 4K bytes
    - Viewed (0)
  9. src/math/all_test.go

    		}
    	}
    }
    
    func TestCeil(t *testing.T) {
    	for i := 0; i < len(vf); i++ {
    		if f := Ceil(vf[i]); !alike(ceil[i], f) {
    			t.Errorf("Ceil(%g) = %g, want %g", vf[i], f, ceil[i])
    		}
    	}
    	for i := 0; i < len(vfceilSC); i++ {
    		if f := Ceil(vfceilSC[i]); !alike(ceilSC[i], f) {
    			t.Errorf("Ceil(%g) = %g, want %g", vfceilSC[i], f, ceilSC[i])
    		}
    	}
    }
    
    func TestCopysign(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/mutating_work_estimator.go

    		//   events are equal and try to estimate the cost of a single event based on
    		//   some historical data about size of events.
    		finalSeats = uint64(math.Ceil(float64(watchCount) / e.config.WatchesPerSeat))
    		finalWork := SeatsTimesDuration(float64(finalSeats), e.config.eventAdditionalDuration())
    
    		// While processing individual events is highly parallel,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:26:52 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top