Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 113 for ABS (0.02 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

              // 16x8 integer quantization is symmetric, this MLIR quantizer
              // supports only symmetric quantization.
              rmax = std::max(std::abs(rmin), std::abs(rmax));
              rmin = -rmax;
            }
            TensorRangeSanityCheck(op, rmin, rmax);
            mins.push_back(rmin);
            maxs.push_back(rmax);
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py

        zero_point = -quant_min / scale
    
        # Limit the range of zero_point and scale in case (quant_max - quant_min)
        # is unusually small.
        if abs(zero_point) > 9e9:
          zero_point = 9e9
        if abs(scale) < 1e-9:
          scale = 1e-9
    
        zero_point = round(zero_point)
        quantized_hist_mids = np.clip(
            np.round(self._hist_mids / scale) + zero_point, minbound, maxbound
        )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/LongMath.java

            break;
          case HALF_EVEN:
          case HALF_DOWN:
          case HALF_UP:
            long absRem = abs(rem);
            long cmpRemToHalfDivisor = absRem - (abs(q) - absRem);
            // subtracting two nonnegative longs can't overflow
            // cmpRemToHalfDivisor has the same sign as compare(abs(rem), abs(q) / 2).
            if (cmpRemToHalfDivisor == 0) { // exactly on the half mark
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  4. src/math/rand/v2/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 = []uint64{1, 1754801282, 1698661970, 1550503961}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vcweb/vcweb.go

    	}
    	var err error
    	scriptDir, err = filepath.Abs(scriptDir)
    	if err != nil {
    		return nil, err
    	}
    
    	if workDir == "" {
    		workDir, err = os.MkdirTemp("", "vcweb-*")
    		if err != nil {
    			return nil, err
    		}
    		logger.Printf("vcweb work directory: %s", workDir)
    	} else {
    		workDir, err = filepath.Abs(workDir)
    		if err != nil {
    			return nil, err
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  6. src/net/http/cgi/host_test.go

    	req.RemoteAddr = "[2000::3000]:12345"
    	h.ServeHTTP(rw, req)
    	runResponseChecks(t, rw, expectedMap)
    }
    
    func TestCGIBasicGetAbsPath(t *testing.T) {
    	absPath, err := filepath.Abs(os.Args[0])
    	if err != nil {
    		t.Fatal(err)
    	}
    	testenv.MustHaveExec(t)
    	h := &Handler{
    		Path: absPath,
    		Root: "/test.cgi",
    	}
    	expectedMap := map[string]string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 18:29:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

        %y, %idx = "tf.Unique"(%arg0) {device = ""} : (tensor<3xf32>) -> (tensor<?xf32>, tensor<3xi32>)
        return %y : tensor<?xf32>
      }
    
      // CHECK-LABEL: @abs
      func.func @abs(%arg0: tensor<2xf32>) -> tensor<2xf32> {
        // CHECK-NOT: tf.Abs
        %0 = "tf.Abs"(%arg0) : (tensor<2xf32>) -> tensor<2xf32>
        func.return %0 : tensor<2xf32>
      }
    
      // CHECK-LABEL: func @testBroadcastGradientArgs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/WasmOps.go

    		{name: "F32Nearest", asm: "F32Nearest", argLength: 1, reg: fp32_11, typ: "Float32"},   // round(arg0)
    		{name: "F32Abs", asm: "F32Abs", argLength: 1, reg: fp32_11, typ: "Float32"},           // abs(arg0)
    		{name: "F32Copysign", asm: "F32Copysign", argLength: 2, reg: fp32_21, typ: "Float32"}, // copysign(arg0, arg1)
    
    		{name: "F64Sqrt", asm: "F64Sqrt", argLength: 1, reg: fp64_11, typ: "Float64"},         // sqrt(arg0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go

    	}
    
    	// Limit the score values to the range [-1.0, 1.0].
    	score = math.Max(-1.0, math.Min(1.0, score))
    
    	// Reduce saturation near score=0 (so it is colored grey, rather than yellow).
    	if math.Abs(score) < 0.2 {
    		saturation *= math.Abs(score) / 0.2
    	}
    
    	// Apply 'shift' to move scores away from 0.0 (grey).
    	if score > 0.0 {
    		score = math.Pow(score, (1.0 - shift))
    	}
    	if score < 0.0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 20:51:42 UTC 2022
    - 14.8K bytes
    - Viewed (0)
  10. cmd/endpoint_test.go

    	"reflect"
    	"strings"
    	"testing"
    )
    
    func TestNewEndpoint(t *testing.T) {
    	u2, _ := url.Parse("https://example.org/path")
    	u4, _ := url.Parse("http://192.168.253.200/path")
    	rootSlashFoo, _ := filepath.Abs("/foo")
    	testCases := []struct {
    		arg              string
    		expectedEndpoint Endpoint
    		expectedType     EndpointType
    		expectedErr      error
    	}{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top