Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 587 for rounds (0.26 sec)

  1. src/internal/byteorder/byteorder.go

    	_ = b[1] // early bounds check to guarantee safety of writes below
    	b[0] = byte(v)
    	b[1] = byte(v >> 8)
    }
    
    func LeAppendUint16(b []byte, v uint16) []byte {
    	return append(b,
    		byte(v),
    		byte(v>>8),
    	)
    }
    
    func LeUint32(b []byte) uint32 {
    	_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
    	return uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 20:31:29 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/image/jpeg/reader_test.go

    			t.Errorf("%s: %v", tc+".progressive.jpeg", err)
    			continue
    		}
    		if m0.Bounds() != m1.Bounds() {
    			t.Errorf("%s: bounds differ: %v and %v", tc, m0.Bounds(), m1.Bounds())
    			continue
    		}
    		// All of the video-*.jpeg files are 150x103.
    		if m0.Bounds() != image.Rect(0, 0, 150, 103) {
    			t.Errorf("%s: bad bounds: %v", tc, m0.Bounds())
    			continue
    		}
    
    		switch m0 := m0.(type) {
    		case *image.YCbCr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  3. src/image/jpeg/reader.go

    		bounds := d.img3.Bounds()
    		img := image.NewRGBA(bounds)
    		imageutil.DrawYCbCr(img, bounds, d.img3, bounds.Min)
    		for iBase, y := 0, bounds.Min.Y; y < bounds.Max.Y; iBase, y = iBase+img.Stride, y+1 {
    			for i, x := iBase+3, bounds.Min.X; x < bounds.Max.X; i, x = i+4, x+1 {
    				img.Pix[i] = 255 - d.blackPix[(y-bounds.Min.Y)*d.blackStride+(x-bounds.Min.X)]
    			}
    		}
    		return &image.CMYK{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        TFL_TensorOf<[F32, I32, I64, I1, I8, UI8]>:$output
      );
    
      let hasOptions = 1;
    }
    
    def TFL_RoundOp: TFL_Op<"round", [
        Pure,
        TF_SameOperandsAndResultTypeResolveRef]> {
      let summary = "Round operator";
    
      let description = [{
    Rounds the values of a tensor to the nearest integer, element-wise.
      }];
    
      let arguments = (ins
        TFL_FpTensor:$x
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/mlir_pass_instrumentation_test.cc

        func.func @main(%arg0: tensor<?xi32, #mhlo.type_extensions<bounds = [1]>>) -> tensor<?xi32, #mhlo.type_extensions<bounds = [1]>> {
          %0 = "tf.Identity"(%arg0) : (tensor<?xi32, #mhlo.type_extensions<bounds = [1]>>) -> tensor<?xi32, #mhlo.type_extensions<bounds = [1]>>
          func.return %0 : tensor<?xi32, #mhlo.type_extensions<bounds = [1]>>
        }
      })";
      SetPassThatChangedIdentity("");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 19 22:54:26 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/image/png/fuzz_test.go

    				continue
    			}
    			img1, err := Decode(&w)
    			if err != nil {
    				t.Errorf("failed to decode roundtripped image: %s", err)
    				continue
    			}
    			got := img1.Bounds()
    			want := img.Bounds()
    			if !got.Eq(want) {
    				t.Errorf("roundtripped image bounds have changed, got: %s, want: %s", got, want)
    			}
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 15:56:27 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. src/image/draw/draw_test.go

    				b := dst.Bounds()
    				// Draw the (src, mask, op) onto a copy of dst using a slow but obviously correct implementation.
    				golden := makeGolden(dst, b, src, src.Bounds().Min, nil, image.Point{}, op)
    				if !b.Eq(golden.Bounds()) {
    					t.Errorf("drawOverlap xoff=%d,yoff=%d: bounds %v versus %v", xoff, yoff, dst.Bounds(), golden.Bounds())
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/Types.java

       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      @CheckForNull
      private static Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
          if (componentType != null) {
            // Only the first bound can be a class or array.
            // Bounds after the first can only be interfaces.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. pkg/kube/inject/testdata/inject/proxy-override-runas.yaml

    Jonh Wendell <******@****.***> 1715709579 -0400
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 480 bytes
    - Viewed (0)
  10. pkg/monitoring/monitoring.go

    // data collected by the Metric will be collected and exported as a histogram, with the specified bounds.
    func NewDistribution(name, description string, bounds []float64, opts ...Options) Metric {
    	knownMetrics.register(MetricDefinition{
    		Name:        name,
    		Type:        "Distribution",
    		Description: description,
    		Bounds:      bounds,
    	})
    	o, dm := createOptions(name, description, opts...)
    	if dm != nil {
    		return dm
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 9.5K bytes
    - Viewed (0)
Back to top