Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for sqrt1 (1.47 sec)

  1. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Div64F x (Const64F <t> [c])) && reciprocalExact64(c) => (Mul64F x (Const64F <t> [1/c]))
    
    // rewrite single-precision sqrt expression "float32(math.Sqrt(float64(x)))"
    (Cvt64Fto32F sqrt0:(Sqrt (Cvt32Fto64F x))) && sqrt0.Uses==1 => (Sqrt32 x)
    
    (Sqrt (Const64F [c])) && !math.IsNaN(math.Sqrt(c)) => (Const64F [math.Sqrt(c)])
    
    // for rewriting results of some late-expanded rewrites (below)
    (SelectN [0] (MakeResult x ___)) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

       * Map<String, Integer> map = ImmutableMap.of("a", 4, "b", 9);
       * Function<Integer, Double> sqrt =
       *     new Function<Integer, Double>() {
       *       public Double apply(Integer in) {
       *         return Math.sqrt((int) in);
       *       }
       *     };
       * Map<String, Double> transformed = Maps.transformValues(map, sqrt);
       * System.out.println(transformed);
       * }</pre>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

              input_tensor, min=-0.1, max=0.2, num_bits=8, narrow_range=False
          )
          sqrt = math_ops.sqrt(q_input, name='sqrt')
          identity = array_ops.identity(sqrt, name='output')
    
          input_map = {'input': input_tensor}
          output_map = {'sqrt': identity}
          signature = signature_def_utils_impl.predict_signature_def(
              inputs=input_map, outputs=output_map
          )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

    // CHECK-LABEL: sigmoid
    // CHECK:  "tfl.logistic"(%arg0) : (tensor<?x88xf32>) -> tensor<?x88xf32>
    }
    
    func.func @sqrt(%arg0: tensor<8x16xf32>) -> tensor<8x16xf32> {
      %0 = "tf.Sqrt"(%arg0) : (tensor<8x16xf32>) -> tensor<8x16xf32>
      func.return %0 : tensor<8x16xf32>
    // CHECK-LABEL: sqrt
    // CHECK:  "tfl.sqrt"(%arg0) : (tensor<8x16xf32>) -> tensor<8x16xf32>
    }
    
    func.func @square(%arg0: tensor<8x16xf32>) -> tensor<8x16xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/ops.mlir

      func.return %0#0 : tensor<?xi32>
    }
    
    // -----
    
    // test invalid Sqrt input
    func.func @testSqrtWithWrongInputType(tensor<? x i32>) -> tensor<? x i32> {
    ^bb0(%arg0: tensor<? x i32>):
      // expected-error @+1 {{tfl.sqrt' op operand #0 must be tensor of 32-bit float values}}
      %0 = "tfl.sqrt"(%arg0): (tensor<? x i32>) -> tensor<? x i32>
      func.return %0#0 : tensor<? x i32>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

            /*scale=*/1.0 / (bit_width == 8 ? (1<<(bit_width)) : (1<<(bit_width-1))),
            /*zero_point=*/bit_width == 8 ? -(1<<(bit_width-1)): 0);
      }
      }];
    }
    
    def TFL_SqrtOp: TFL_Op<"sqrt", [
        Pure,
        TF_SameOperandsAndResultTypeResolveRef]> {
      let summary = "Square root operator";
    
      let description = [{
        Computes element-wise Square root of input
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  7. pkg/config/validation/validation.go

    func isPrime(x uint64) bool {
    	if x != 0 && x < 4 {
    		return true // eliminates special-casing 2.
    	} else if (x & 1) == 0 {
    		return false // eliminates even numbers >2.
    	}
    
    	limit := uint64(math.Sqrt(float64(x)))
    	for factor := uint64(3); factor <= limit; factor += 2 {
    		if (x % factor) == 0 {
    			return false
    		}
    	}
    	return true
    }
    
    func validateSubset(subset *networking.Subset) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (Xor(64|32|16|8) ...) => (XOR ...)
    
    // unary ops
    (Neg(64|32|16|8) ...) => (NEG ...)
    (Neg(32|64)F     ...) => (FNEG(S|D) ...)
    (Com(64|32|16|8) ...) => (MVN ...)
    
    // math package intrinsics
    (Abs         ...) => (FABSD   ...)
    (Sqrt        ...) => (FSQRTD  ...)
    (Ceil        ...) => (FRINTPD ...)
    (Floor       ...) => (FRINTMD ...)
    (Round       ...) => (FRINTAD ...)
    (RoundToEven ...) => (FRINTND ...)
    (Trunc       ...) => (FRINTZD ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  9. src/reflect/all_test.go

    }
    
    // This will be index 4.
    func (p Point) TotalDist(points ...Point) int {
    	tot := 0
    	for _, q := range points {
    		dx := q.x - p.x
    		dy := q.y - p.y
    		tot += dx*dx + dy*dy // Should call Sqrt, but it's just a test.
    
    	}
    	return tot
    }
    
    // This will be index 5.
    func (p *Point) Int64Method(x int64) int64 {
    	return x
    }
    
    // This will be index 6.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top