Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 85 for S1 (0.02 sec)

  1. src/slices/sort_test.go

    	}
    	if !data.inOrder(false) {
    		t.Errorf("Stable wasn't stable on %d ints", n)
    	}
    }
    
    type S struct {
    	a int
    	b string
    }
    
    func cmpS(s1, s2 S) int {
    	return cmp.Compare(s1.a, s2.a)
    }
    
    func TestMinMax(t *testing.T) {
    	intCmp := func(a, b int) int { return a - b }
    
    	tests := []struct {
    		data    []int
    		wantMin int
    		wantMax int
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    // hasTerms reports whether the type set has specific type terms.
    func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll() }
    
    // subsetOf reports whether s1 ⊆ s2.
    func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) }
    
    // TODO(gri) TypeSet.is and TypeSet.underIs should probably also go into termlist.go
    
    // is calls f with the specific type terms of s and reports whether
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/encoding/binary/binary_test.go

    		},
    	},
    }
    
    func testRead(t *testing.T, order ByteOrder, b []byte, s1 any) {
    	for _, dec := range decoders {
    		t.Run(dec.name, func(t *testing.T) {
    			var s2 Struct
    			err := dec.fn(order, &s2, b)
    			checkResult(t, dec.name, order, err, s2, s1)
    		})
    	}
    }
    
    func testWrite(t *testing.T, order ByteOrder, b []byte, s1 any) {
    	for _, enc := range encoders {
    		t.Run(enc.name, func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    	{S1{}, "S0", []int{1}, 0},
    	{S1{S0: S0{C: 'c'}}, "C", []int{1, 2}, 'c'},
    	{S2{A: 'a'}, "A", []int{0}, 'a'},
    	{S2{}, "S1", []int{1}, 0},
    	{S2{S1: &S1{B: 'b'}}, "B", []int{1, 0}, 'b'},
    	{S2{S1: &S1{S0: S0{C: 'c'}}}, "C", []int{1, 1, 2}, 'c'},
    	{S2{}, "D", nil, 0},
    	{S3{}, "S1", nil, 0},
    	{S3{S2: S2{A: 'a'}}, "A", []int{1, 0}, 'a'},
    	{S3{}, "B", nil, 0},
    	{S3{D: 'd'}, "D", []int{2}, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  5. src/encoding/json/decode_test.go

    		s0[i] = byte(i)
    	}
    	b, err := Marshal(s0)
    	if err != nil {
    		t.Fatalf("Marshal error: %v", err)
    	}
    	var s1 []byte
    	if err := Unmarshal(b, &s1); err != nil {
    		t.Fatalf("Unmarshal error: %v", err)
    	}
    	if !bytes.Equal(s0, s1) {
    		t.Errorf("Marshal:")
    		diff(t, s0, s1)
    	}
    }
    
    type Xint struct {
    	X int
    }
    
    func TestUnmarshalInterface(t *testing.T) {
    	var xint Xint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/decls0.go

    	a /* ERROR "redeclared" */ int
    
    	b /* ERROR "invalid recursive type" */ c
    	c d
    	d e
    	e b
    
    	t *t
    
    	U V
    	V *W
    	W U
    
    	P1 *S2
    	P2 P1
    
    	S0 struct {
    	}
    	S1 struct {
    		a, b, c int
    		u, v, a /* ERROR "redeclared" */ float32
    	}
    	S2 struct {
    		S0 // embedded field
    		S0 /* ERROR "redeclared" */ int
    	}
    	S3 struct {
    		x S2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/prepare-tf-fake-quant.mlir

      %mini = "tf.Identity"(%min) : (tensor<48xf32>) -> tensor<48xf32>
      %maxi = "tf.Identity"(%max) : (tensor<48xf32>) -> tensor<48xf32>
      %s1 = arith.constant dense<[3, 3, 48]> : tensor<3xi32>
      %s2 = arith.constant dense<[3, 3, 48, 1]> : tensor<4xi32>
      %r1 = "tf.Reshape"(%in, %s1) {T = f32, Tshape = i32, device = ""} : (tensor<3x3x48x1xf32>, tensor<3xi32>) -> tensor<3x3x48xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    //===----------------------------------------------------------------------===//
    
    namespace {
    // Returns `true` if both s0 & s1 are defined via constant op, and fills
    // s0_shape & s1_shape.
    bool ExtractInputConstShape(BroadcastGradientArgsOp op,
                                DenseIntElementsAttr& s0, DenseIntElementsAttr& s1,
                                SmallVectorImpl<int64_t>& s0_shape,
                                SmallVectorImpl<int64_t>& s1_shape) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  9. src/time/format.go

    	"June",
    	"July",
    	"August",
    	"September",
    	"October",
    	"November",
    	"December",
    }
    
    // match reports whether s1 and s2 match ignoring case.
    // It is assumed s1 and s2 are the same length.
    func match(s1, s2 string) bool {
    	for i := 0; i < len(s1); i++ {
    		c1 := s1[i]
    		c2 := s2[i]
    		if c1 != c2 {
    			// Switch to lower-case; 'a'-'A' is known to be a single bit.
    			c1 |= 'a' - 'A'
    			c2 |= 'a' - 'A'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/prepare-tf-fake-quant-4bit.mlir

      %mini = "tf.Identity"(%min) : (tensor<48xf32>) -> tensor<48xf32>
      %maxi = "tf.Identity"(%max) : (tensor<48xf32>) -> tensor<48xf32>
      %s1 = arith.constant dense<[3, 3, 48]> : tensor<3xi32>
      %s2 = arith.constant dense<[3, 3, 48, 1]> : tensor<4xi32>
      %r1 = "tf.Reshape"(%in, %s1) {T = f32, Tshape = i32, device = ""} : (tensor<3x3x48x1xf32>, tensor<3xi32>) -> tensor<3x3x48xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 22K bytes
    - Viewed (0)
Back to top