Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 77 for sqrt1 (0.04 sec)

  1. tensorflow/compiler/mlir/lite/tests/quantize-numeric-verify.mlir

    // MODEL-DEBUG: %[[f_sqrt1:.*]] = "tfl.sqrt"(%[[f_conv]]
    // MODEL-DEBUG: %[[q_sqrt1:.*]] = "tfl.sqrt"(%[[dq0]]
    // MODEL-DEBUG: %[[q1:.*]] = "tfl.quantize"(%[[q_sqrt1]])
    // MODEL-DEBUG: %[[dq1:.*]] = "tfl.dequantize"(%[[q1]])
    // MODEL-DEBUG: %[[f_sqrt2:.*]] = "tfl.sqrt"(%[[f_sqrt1]])
    // MODEL-DEBUG-NOT: debug_
    // MODEL-DEBUG-SAME: (tensor<?x1x1x3xf32>)
    // MODEL-DEBUG: %[[q_sqrt2:.*]] = "tfl.sqrt"(%[[dq1]]
    // MODEL-DEBUG-NOT: debug_
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc

        if (!fp_type) {
          return failure();
        }
    
        // result = (x - mean) * scale / sqrt(variance + epsilon) + offset
        // Let multiplier = scale / sqrt(variance + epsilon), to compute
        // (x - mean) * scale / sqrt(variance + epsilon) + offset,
        // is then to compute (x * multiplier) + (offset - mean * multiplier).
    
        auto epsilon = materializeEpsilon(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td

    // operations. Specifically, performs the following calculation:
    //
    //   (x - mean) * scale / sqrt(variance + epsilon) + offset
    //
    // Let multiplier = scale / sqrt(variance + epsilon),
    // to compute
    //   (x - mean) * scale / sqrt(variance + epsilon) + offset,
    // is then to compute
    //   (x * multiplier) + (offset - mean * multiplier).
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/decompose_resource_ops.mlir

        // CHECK: [[LR_MULTIPLY:%.*]] = "tf.Mul"([[LR]], [[GRAD]]) : (tensor<f32>, tensor<f32>) -> tensor<f32>
        // CHECK: [[SQRT:%.*]] = "tf.Sqrt"([[NEW_ACC]]) : (tensor<*xf32>) -> tensor<*xf32>
        // CHECK: [[DIVISOR:%.*]] = "tf.AddV2"([[SQRT]], [[EPSILON]]) : (tensor<*xf32>, tensor<f32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe.go

    	t0.Square(&t0)            // 2^251 - 2
    	t0.Square(&t0)            // 2^252 - 4
    	return v.Multiply(&t0, x) // 2^252 - 3 -> x^(2^252-3)
    }
    
    // sqrtM1 is 2^((p-1)/4), which squared is equal to -1 by Euler's Criterion.
    var sqrtM1 = &Element{1718705420411056, 234908883556509,
    	2233514472574048, 2117202627021982, 765476049583133}
    
    // SqrtRatio sets r to the non-negative square root of the ratio of u and v.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/unfuse_mhlo_batch_norm.mlir

      // CHECK-DAG: %[[EPS_BCAST:.+]] = mhlo.constant dense<1.001000e-05> : tensor<256xf32>
      // CHECK-DAG: %[[VARIANCE_EPS:.+]] = mhlo.add %[[VARIANCE]], %[[EPS_BCAST]] : tensor<256xf32>
      // CHECK-DAG: %[[STDDEV:.+]] = mhlo.sqrt %[[VARIANCE_EPS]] : tensor<256xf32>
      // CHECK-DAG: %[[STDDEV_BCAST:.+]] = "mhlo.broadcast_in_dim"(%[[STDDEV]]) <{broadcast_dimensions = dense<1> : tensor<1xi64>}> : (tensor<256xf32>) -> tensor<4x256xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/math/rand/rand_test.go

    	}
    
    	// Expect a uniform distribution of byte values, which lie in [0, 255].
    	var (
    		mean       = 255.0 / 2
    		stddev     = 256.0 / math.Sqrt(12.0)
    		errorScale = stddev / math.Sqrt(float64(n))
    	)
    
    	expected := &statsResults{mean, stddev, 0.10 * errorScale, 0.08 * errorScale}
    
    	// Cast bytes as floats to use the common distribution-validity checks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataSeries.java

                sumSquares = sumSquares.add(diff);
            }
            // This isn't quite right, as we may lose precision when converting to a double
            BigDecimal result = BigDecimal.valueOf(Math.sqrt(sumSquares.divide(BigDecimal.valueOf(size()), RoundingMode.HALF_UP).doubleValue())).setScale(2, RoundingMode.HALF_UP);
    
            standardError = Amount.valueOf(result, baseUnits);
        }
    
        public Amount<Q> getAverage() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/hash/maphash/smhasher_test.go

    	var c float64
    	// find c such that Prob(mean-c*stddev < x < mean+c*stddev)^N > .9999
    	for c = 0.0; math.Pow(math.Erf(c/math.Sqrt(2)), float64(N)) < .9999; c += .1 {
    	}
    	c *= 11.0 // allowed slack: 40% to 60% - we don't need to be perfectly random
    	mean := .5 * REP
    	stddev := .5 * math.Sqrt(REP)
    	low := int(mean - c*stddev)
    	high := int(mean + c*stddev)
    	for i := 0; i < n; i++ {
    		for j := 0; j < hashSize; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/generate.go

    		tables[tableIndex].Select(t, windowValue)
    		p.Add(p, t)
    		tableIndex--
    	}
    
    	return p, nil
    }
    
    // {{.p}}Sqrt sets e to a square root of x. If x is not a square, {{.p}}Sqrt returns
    // false and e is unchanged. e and x can overlap.
    func {{.p}}Sqrt(e, x *{{ .Element }}) (isSquare bool) {
    	candidate := new({{ .Element }})
    	{{.p}}SqrtCandidate(candidate, x)
    	square := new({{ .Element }}).Square(candidate)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top