Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for ABS (0.09 sec)

  1. src/math/big/float.go

    		case x.exp > allBits:
    			z.a.abs = z.a.abs.shl(x.mant, uint(x.exp-allBits))
    			z.b.abs = z.b.abs[:0] // == 1 (see Rat)
    			// z already in normal form
    		default:
    			z.a.abs = z.a.abs.set(x.mant)
    			z.b.abs = z.b.abs[:0] // == 1 (see Rat)
    			// z already in normal form
    		case x.exp < allBits:
    			z.a.abs = z.a.abs.set(x.mant)
    			t := z.b.abs.setUint64(1)
    			z.b.abs = t.shl(t, uint(allBits-x.exp))
    			z.norm()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

            op.emitError(
                "extended power of 2 scale is only supported for 16-bit"
                " quantization.");
            return failure();
          }
    
          double bound = PowerOfTwoBound(std::max(std::abs(min), std::abs(max)));
          // Set flags to 1 for signed type.
          quant_type = UniformQuantizedType::getChecked(
              op.getLoc(), quant::QuantizationFlags::Signed,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/mlrt/tf_to_mlrt.mlir

      // CHECK-SAME: AddV2
      %a = "tf.AddV2"(%input0, %const) {__op_key = 1: i32}: (tensor<i32>, tensor<i32>) -> tensor<i32>
      // CHECK: [[b:%.*]] = tf_mlrt.executeop([[a]])
      // CHECK-SAME: Abs
      %b = "tf.Abs"(%a) {__op_key = 2 : i32}: (tensor<i32>) -> tensor<i32>
      // CHECK: tf_mlrt.promise [[promise_b]], [[b]]
      "tf_mlrt.tf_promise"(%promise_b, %b) : (!mlrt.promise, tensor<i32>) -> ()
      // CHECK: return
      return
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  4. pkg/kubelet/apis/config/helpers_test.go

    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.d.Dec.scale",
    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.d.Dec.unscaled.abs[*]",
    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.d.Dec.unscaled.neg",
    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.i.scale",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. src/path/filepath/path.go

    	return filepathlite.IsAbs(path)
    }
    
    // Abs returns an absolute representation of path.
    // If the path is not absolute it will be joined with the current
    // working directory to turn it into an absolute path. The absolute
    // path name for a given file is not guaranteed to be unique.
    // Abs calls [Clean] on the result.
    func Abs(path string) (string, error) {
    	return abs(path)
    }
    
    func unixAbs(path string) (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

    def LowerTruncateDivOpOnIntTensors : Pat<
      (TF_TruncateDivOp TF_IntTensor:$lhs, $rhs),
      (TF_DivOp $lhs, $rhs)>;
    
    // Note: truncation could also be implemented as sign(x) * floor(abs(x)) or
    //       (-1 & x) || floor(abs(x)), based on performance benchmarks.
    def LowerTruncateDivOpOnFloatTensors : Pat<
      (TF_TruncateDivOp TF_FloatTensor:$lhs, $rhs),
      (TF_SelectV2Op
        (TF_LessOp
          (TF_DivOp:$div $lhs, $rhs),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

    def : Pat<(TF_ApproximateEqualOp:$result $x, $y, $tolerance),
              (CHLO_BroadcastCompareOp
               (MHLO_AbsOp:$abs (MHLO_SubtractOp $x, $y)),
               (CastValueToElementType $result, (MHLO_ConstantOp $tolerance), $abs),
               (NullDenseI64ArrayAttr),
               CHLO_ComparisonDirectionValue<"LT">,
               (CHLO_DEFAULT_COMPARISON_TYPE))>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  8. src/encoding/json/encode.go

    	b := e.AvailableBuffer()
    	b = mayAppendQuote(b, opts.quoted)
    	abs := math.Abs(f)
    	fmt := byte('f')
    	// Note: Must use float32 comparisons for underlying float32 value to get precise cutoffs right.
    	if abs != 0 {
    		if bits == 64 && (abs < 1e-6 || abs >= 1e21) || bits == 32 && (float32(abs) < 1e-6 || float32(abs) >= 1e21) {
    			fmt = 'e'
    		}
    	}
    	b = strconv.AppendFloat(b, f, fmt, -1, int(bits))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  9. security/pkg/nodeagent/cache/secretcache_test.go

    		totalTimeout = originalTimeout
    	}()
    
    	u := NewUpdateTracker(t)
    	sc := createCache(t, nil, u.Callback, security.Options{})
    	rootCertPath, _ := filepath.Abs("./testdata/root-cert-bogus.pem")
    	keyPath, _ := filepath.Abs("./testdata/key-bogus.pem")
    	certChainPath, _ := filepath.Abs("./testdata/cert-chain-bogus.pem")
    
    	resource := fmt.Sprintf("file-cert:%s~%s", certChainPath, keyPath)
    
    	gotSecret, err := sc.GenerateSecret(resource)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  10. src/math/rand/rand_test.go

    	closeEnough float64
    	maxError    float64
    }
    
    func nearEqual(a, b, closeEnough, maxError float64) bool {
    	absDiff := math.Abs(a - b)
    	if absDiff < closeEnough { // Necessary when one value is zero and one value is close to zero.
    		return true
    	}
    	return absDiff/max(math.Abs(a), math.Abs(b)) < maxError
    }
    
    var testSeeds = []int64{1, 1754801282, 1698661970, 1550503961}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top