Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 2,948 for integers (0.42 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

        "Q" # !if (signed, "I", "UI") # !head(params) # " type"> {
      string name = n;
      string asTraitArgsStr =
        !interleave(params, ", ") # !if(signed, ", true", ", false");
    }
    
    // Uniform quantized types. Two integers "smantissa" and "sexp" are used to
    // express the Mantissa and Exponent components of the floating-point scale so
    // the scale of the quantized type is "smantissa * 10 ^ sexp".
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testLeastOfIterable_ties() {
        Integer foo = new Integer(Integer.MAX_VALUE - 10);
        Integer bar = new Integer(Integer.MAX_VALUE - 10);
    
        assertNotSame(foo, bar);
        assertEquals(foo, bar);
    
        List<Integer> list = Arrays.asList(3, foo, bar, -1);
        List<Integer> result = numberOrdering.leastOf(list, list.size());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  3. src/encoding/asn1/asn1.go

    		if shifted == 5 {
    			err = StructuralError{"base 128 integer too large"}
    			return
    		}
    		ret64 <<= 7
    		b := bytes[offset]
    		// integers should be minimally encoded, so the leading octet should
    		// never be 0x80
    		if shifted == 0 && b == 0x80 {
    			err = SyntaxError{"integer is not minimally encoded"}
    			return
    		}
    		ret64 |= int64(b & 0x7f)
    		offset++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  4. src/math/big/rat.go

    		Msize2 = Msize1 + 1
    
    		// exponent
    		Esize = Fsize - Msize1
    		Ebias = 1<<(Esize-1) - 1
    		Emin  = 1 - Ebias
    		Emax  = Ebias
    	)
    
    	// TODO(adonovan): specialize common degenerate cases: 1.0, integers.
    	alen := a.bitLen()
    	if alen == 0 {
    		return 0, true
    	}
    	blen := b.bitLen()
    	if blen == 0 {
    		panic("division by zero")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  5. src/runtime/vlrt.go

    	if y < 0 {
    		return -uint64tofloat32(-uint64(y))
    	}
    	return uint64tofloat32(uint64(y))
    }
    
    func uint64tofloat32(y uint64) float32 {
    	// divide into top 18, mid 23, and bottom 23 bits.
    	// (23-bit integers fit into a float32 without loss.)
    	top := uint32(y >> 46)
    	mid := uint32(y >> 23 & (1<<23 - 1))
    	bot := uint32(y & (1<<23 - 1))
    	if top == 0 {
    		return float32(mid)*(1<<23) + float32(bot)
    	}
    	if bot != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/const0.go

    	const i5 = iota
    	const i6 = iota
    
    	assert(i4 == 0)
    	assert(i5 == 0)
    	assert(i6 == 0)
    }
    
    // untyped constants must not get arbitrarily large
    const prec = 512 // internal maximum precision for integers
    const maxInt = (1<<(prec/2) - 1) * (1<<(prec/2) + 1) // == 1<<prec - 1
    
    const _ = maxInt + /* ERROR "constant addition overflow" */ 1
    const _ = -maxInt - /* ERROR "constant subtraction overflow" */ 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. src/log/slog/value_test.go

    	if a != 0 {
    		t.Errorf("got %d allocs, want zero", a)
    	}
    	_ = u
    	_ = f
    	_ = b
    	_ = s
    	_ = x
    	_ = tm
    }
    
    func TestAnyLevelAlloc(t *testing.T) {
    	// Because typical Levels are small integers,
    	// they are zero-alloc.
    	var a Value
    	x := LevelDebug + 100
    	wantAllocs(t, 0, func() { a = AnyValue(x) })
    	_ = a
    }
    
    func TestAnyValue(t *testing.T) {
    	for _, test := range []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. src/database/sql/convert_test.go

    		// correctly reset when calling time.Time.AppendFormat.
    		{s: time.Unix(2, 5).UTC(), d: &scanraw, wantraw: RawBytes("1970-01-01T00:00:02.000000005Z")},
    
    		// Strings to integers
    		{s: "255", d: &scanuint8, wantuint: 255},
    		{s: "256", d: &scanuint8, wanterr: "converting driver.Value type string (\"256\") to a uint8: value out of range"},
    		{s: "256", d: &scanuint16, wantuint: 256},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/batch/v1/types_swagger_doc_generated.go

    the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 12:01:28 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  10. src/math/rand/rand.go

    again:
    	f := float32(r.Float64())
    	if f == 1 {
    		goto again // resample; this branch is taken O(very rarely)
    	}
    	return f
    }
    
    // Perm returns, as a slice of n ints, a pseudo-random permutation of the integers
    // in the half-open interval [0,n).
    func (r *Rand) Perm(n int) []int {
    	m := make([]int, n)
    	// In the following loop, the iteration when i=0 always swaps m[0] with m[0].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top