Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for rs2 (0.03 sec)

  1. pkg/apis/extensions/v1beta1/defaults_test.go

    		rs := test.rs
    		obj2 := roundTrip(t, runtime.Object(rs))
    		rs2, ok := obj2.(*extensionsv1beta1.ReplicaSet)
    		if !ok {
    			t.Errorf("unexpected object: %v", rs2)
    			t.FailNow()
    		}
    		if test.expectSelector != reflect.DeepEqual(rs2.Spec.Selector.MatchLabels, rs2.Spec.Template.Labels) {
    			if test.expectSelector {
    				t.Errorf("expected: %v, got: %v", rs2.Spec.Template.Labels, rs2.Spec.Selector)
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/riscv/obj.go

    // encodeR encodes an R-type RISC-V instruction.
    func encodeR(as obj.As, rs1, rs2, rd, funct3, funct7 uint32) uint32 {
    	enc := encode(as)
    	if enc == nil {
    		panic("encodeR: could not encode instruction")
    	}
    	if enc.rs2 != 0 && rs2 != 0 {
    		panic("encodeR: instruction uses rs2, but rs2 was nonzero")
    	}
    	return funct7<<25 | enc.funct7<<25 | enc.rs2<<20 | rs2<<20 | rs1<<15 | enc.funct3<<12 | funct3<<12 | rd<<7 | enc.opcode
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  3. pkg/controller/deployment/deployment_controller_test.go

    	rs1.Spec.Selector.MatchLabels[apps.DefaultDeploymentUniqueLabelKey] = "hash"
    
    	rs2 := newReplicaSet(d, "deploymentrs-new", 1)
    	rs2.Annotations = map[string]string{util.RevisionAnnotation: "2"}
    	rs2.Spec.Selector.MatchLabels[apps.DefaultDeploymentUniqueLabelKey] = "hash"
    
    	f.rsLister = append(f.rsLister, rs1, rs2)
    	f.objects = append(f.objects, d, rs1, rs2)
    
    	// Rollback is done here
    	f.expectUpdateDeploymentAction(d)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  4. pkg/controller/deployment/sync_test.go

    		},
    		{
    			// revision order: rs2 < rs1, delete rs2
    			oldRSs: []*apps.ReplicaSet{
    				newRSWithRevisionAndCreationTimestamp("foo-1", 0, selector, now.Add(-1*duration), "2"),
    				newRSWithRevisionAndCreationTimestamp("foo-2", 0, selector, now.Time, "1"),
    			},
    			revisionHistoryLimit: 1,
    			expectedDeletedRSs:   sets.NewString("foo-2"),
    		},
    		{
    			// rs1 has revision but rs2 doesn't have revision, delete rs2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  5. pkg/controller/deployment/rollback.go

    		// Note that both annotations are copied from Deployment, and the Deployment should be annotated {change-cause:edit} as well.
    		// Now, rollback Deployment to RS1, we should update Deployment's pod-template and also copy annotation from RS1.
    		// Deployment is now annotated {change-cause:create}, and we have new RS1 {change-cause:create}, old RS2 {change-cause:edit}.
    		//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  6. src/reflect/visiblefields_test.go

    type SG struct {
    	G int
    }
    
    type SG1 struct {
    	SG
    }
    
    type sFG struct {
    	F int
    	G int
    }
    
    type RS1 struct {
    	i int
    }
    
    type RS2 struct {
    	RS1
    }
    
    type RS3 struct {
    	RS2
    	RS1
    }
    
    type M map[string]any
    
    type Rec1 struct {
    	*Rec2
    }
    
    type Rec2 struct {
    	F string
    	*Rec1
    }
    
    func TestFields(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 08 13:44:41 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  7. pkg/apis/apps/v1beta2/defaults_test.go

    		rs := &test.rs
    		obj2 := roundTrip(t, runtime.Object(rs))
    		rs2, ok := obj2.(*appsv1beta2.ReplicaSet)
    		if !ok {
    			t.Errorf("unexpected object: %v", rs2)
    			t.FailNow()
    		}
    		if rs2.Spec.Replicas == nil {
    			t.Errorf("unexpected nil Replicas")
    		} else if test.expectReplicas != *rs2.Spec.Replicas {
    			t.Errorf("expected: %d replicas, got: %d", test.expectReplicas, *rs2.Spec.Replicas)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. pkg/apis/apps/v1/defaults_test.go

    		rs := &test.rs
    		obj2 := roundTrip(t, runtime.Object(rs))
    		rs2, ok := obj2.(*appsv1.ReplicaSet)
    		if !ok {
    			t.Errorf("unexpected object: %v", rs2)
    			t.FailNow()
    		}
    		if rs2.Spec.Replicas == nil {
    			t.Errorf("unexpected nil Replicas")
    		} else if test.expectReplicas != *rs2.Spec.Replicas {
    			t.Errorf("expected: %d replicas, got: %d", test.expectReplicas, *rs2.Spec.Replicas)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. pkg/controller/deployment/util/deployment_util_test.go

    		})
    	}
    }
    
    func TestGetReplicaCountForReplicaSets(t *testing.T) {
    	rs1 := generateRS(generateDeployment("foo"))
    	*(rs1.Spec.Replicas) = 1
    	rs1.Status.Replicas = 2
    	rs2 := generateRS(generateDeployment("bar"))
    	*(rs2.Spec.Replicas) = 2
    	rs2.Status.Replicas = 3
    
    	tests := []struct {
    		Name           string
    		sets           []*apps.ReplicaSet
    		expectedCount  int32
    		expectedActual int32
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/optimize.mlir

      // CHECK: %[[fc:.*]] = "tfl.fully_connected"(%arg0, %arg1, %[[cst]])
      // CHECK: %[[rs1:.*]] = "tfl.reshape"(%[[fc]]
      // CHECK: %[[rs2:.*]] = "tfl.reshape"(%[[rs1]]
      // CHECK: return %[[rs2]]
    
      // FOLD: %[[cst:.*]] = arith.constant dense<5.000000e+00> : tensor<40x40xf32>
      // FOLD: %[[fc:.*]] = "tfl.fully_connected"(%arg0, %arg1, %[[cst]])
      // FOLD: return %[[fc]]
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 284.1K bytes
    - Viewed (0)
Back to top