- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for cedil (0.12 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.cc
int sh; // Stride on "height" dimension. int sw; // Stride on "width" dimension. bool ceil_mode; // Rounding strategy (ceil or floor). }; // Rounds the dimension based on the ceil mode. int RoundDim(float dim, bool ceil_mode) { if (ceil_mode) { return std::ceil(dim); } return std::floor(dim); } // For H or W, calculate the output dimension for average pool.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 9.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td
(IsBoolCompositeAttribute<"count_include_pad", "true"> $attrs)]>; // Replaces aten.avg_pool2d with ceil mode with (T -> tfl.pad -> tfl.average_pool_2d -> mul -> T). Multiplies by a constant // which corrects the overcounting of divisors that would occur if doing this computation on a padded tensor with ceil mode off. def LegalizeAvgPoolCeilModeTrue: Pat< (MHLO_CompositeOp:$old_val
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 7.8K bytes - Viewed (0) -
src/math/floor_386.s
MOVW -2(SP), AX ANDW $0xf3ff, AX ORW $0x0800, AX // Rounding Control set to +Inf MOVW AX, -4(SP) // store new Control Word FLDCW -4(SP) // load new Control Word FRNDINT // F0=Ceil(x) FLDCW -2(SP) // load old Control Word FMOVDP F0, ret+8(FP) RET // func archFloor(x float64) float64 TEXT ·archFloor(SB),NOSPLIT,$0 FMOVD x+0(FP), F0 // F0=x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 15 15:48:19 UTC 2021 - 1.5K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/helpers_linux.go
// See: https://github.com/kubernetes/kubernetes/pull/102884#discussion_r662552642 func sharesToMilliCPU(shares int64) int64 { milliCPU := int64(0) if shares >= int64(cm.MinShares) { milliCPU = int64(math.Ceil(float64(shares*milliCPUToCPU) / float64(cm.SharesPerCPU))) } return milliCPU } // quotaToMilliCPU converts cpu.cfs_quota_us and cpu.cfs_period_us to milli-CPU value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding_test.go
} return ans } func TestUniformDistribution(t *testing.T) { const spare = 64 - MaxHashBits tests := []struct { deckSize, handSize int hashMax int }{ {64, 3, 1 << uint(math.Ceil(math.Log2(float64(ff(64, 3))))+spare)}, {128, 3, ff(128, 3)}, {50, 4, ff(50, 4)}, } for _, test := range tests { dealer, err := NewDealer(test.deckSize, test.handSize) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 25 06:44:08 UTC 2021 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h
inline float CalculateBinWidth(const float min_value, const float max_value, const int32_t num_bins) { const float raw_bin_width = (max_value - min_value) / num_bins; return std::pow(2, std::ceil(std::log2(raw_bin_width))); } // Calculates the lower bound of the histogram. The lower bound is in form of // `N * bin_width`. inline float CalculateLowerBound(const float min_value, const float bin_width) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 01:09:50 UTC 2024 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/cidr.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:04 UTC 2023 - 2.2K bytes - Viewed (0) -
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) -
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) -
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)