Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for sqDiff (0.16 sec)

  1. src/image/draw/draw_test.go

    		-0x7ffffffe,
    		-0x80000000,
    	}
    	for _, x := range testCases {
    		for _, y := range testCases {
    			if got, want := sqDiff(x, y), orig(x, y); got != want {
    				t.Fatalf("sqDiff(%#x, %#x): got %d, want %d", x, y, got, want)
    			}
    		}
    	}
    	if err := quick.CheckEqual(orig, sqDiff, &quick.Config{MaxCountScale: 10}); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  2. src/image/draw/draw.go

    				// TODO(nigeltao): consider smarter algorithms.
    				bestIndex, bestSum := 0, uint32(1<<32-1)
    				for index, p := range palette {
    					sum := sqDiff(er, p[0]) + sqDiff(eg, p[1]) + sqDiff(eb, p[2]) + sqDiff(ea, p[3])
    					if sum < bestSum {
    						bestIndex, bestSum = index, sum
    						if sum == 0 {
    							break
    						}
    					}
    				}
    				pix[y*stride+x] = byte(bestIndex)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/unfuse_mhlo_batch_norm.mlir

      // CHECK-DAG: %[[SQ_DIFF:.+]] = "tf.SquaredDifference"(%arg0, %[[MEAN_BCAST]]) : (tensor<3x4x256x6xf32>, tensor<3x4x256x6xf32>) -> tensor<3x4x256x6xf32>
      // CHECK-DAG: %[[VARIANCE:.+]] = "tf.Mean"(%[[SQ_DIFF]], %[[CST_AXIS]]) <{keep_dims = false}> : (tensor<3x4x256x6xf32>, tensor<3xi32>) -> tensor<256xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. cmd/generic-handlers.go

    		header := w.Header()
    		header.Set("X-XSS-Protection", "1; mode=block")                                // Prevents against XSS attacks
    		header.Set("X-Content-Type-Options", "nosniff")                                // Prevent mime-sniff
    		header.Set("Strict-Transport-Security", "max-age=31536000; includeSubDomains") // HSTS mitigates variants of MITM attacks
    
    		// Previously, this value was set right before a response was sent to
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. pkg/ctrlz/assets/static/js/prism-1.14.0.min.js

    ce|nl|nohup|notify-send|npm|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|uni...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/listener_waypoint.go

    			httpName := name + "-http"
    			httpChain := &listener.FilterChain{
    				Filters: lb.buildWaypointInboundHTTPFilters(svc, cc),
    				Name:    httpName,
    			}
    			if port.Protocol.IsUnsupported() {
    				// If we need to sniff, insert two chains and the protocol detector
    				chains = append(chains, tcpChain, httpChain)
    				portMapper.Map[portString] = match.ToMatcher(match.NewAppProtocol(match.ProtocolMatch{
    					TCP:  match.ToChain(tcpName),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  7. src/net/http/transfer.go

    	}
    	n, err := strconv.ParseUint(cl, 10, 63)
    	if err != nil {
    		return 0, badStringError("bad Content-Length", cl)
    	}
    	return int64(n), nil
    }
    
    // finishAsyncByteRead finishes reading the 1-byte sniff
    // from the ContentLength==0, Body!=nil case.
    type finishAsyncByteRead struct {
    	tw *transferWriter
    }
    
    func (fr finishAsyncByteRead) Read(p []byte) (n int, err error) {
    	if len(p) == 0 {
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  8. src/net/http/fs.go

    	if done {
    		return
    	}
    
    	code := StatusOK
    
    	// If Content-Type isn't set, use the file's extension to find it, but
    	// if the Content-Type is unset explicitly, do not sniff the type.
    	ctypes, haveType := w.Header()["Content-Type"]
    	var ctype string
    	if !haveType {
    		ctype = mime.TypeByExtension(filepath.Ext(name))
    		if ctype == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. src/net/http/clientserver_test.go

    	cst.tr.ExpectContinueTimeout = 10 * time.Second
    
    	req, err := NewRequest("POST", cst.ts.URL, testErrorReader{t})
    	if err != nil {
    		t.Fatal(err)
    	}
    	req.ContentLength = 0 // so transport is tempted to sniff it
    	req.Header.Set("Expect", "100-continue")
    	res, err := cst.tr.RoundTrip(req)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != StatusUnauthorized {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top