Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 322 for assignment1 (0.17 sec)

  1. pkg/kubelet/cm/memorymanager/policy_static.go

    			return false
    		}
    
    		if nodeState1.NumberOfAssignments != nodeState2.NumberOfAssignments {
    			klog.ErrorS(nil, "Node states number of assignments are different", "assignment1", nodeState1.NumberOfAssignments, "assignment2", nodeState2.NumberOfAssignments)
    			return false
    		}
    
    		if !areGroupsEqual(nodeState1.Cells, nodeState2.Cells) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
  2. src/go/types/assignments.go

    // if necessary by attempting to convert untyped values to the appropriate
    // type. context describes the context in which the assignment takes place.
    // Use T == nil to indicate assignment to an untyped blank identifier.
    // If the assignment check fails, x.mode is set to invalid.
    func (check *Checker) assignment(x *operand, T Type, context string) {
    	check.singleValue(x)
    
    	switch x.mode {
    	case invalid:
    		return // error reported before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/assignments.go

    	err.report()
    }
    
    // initVars type-checks assignments of initialization expressions orig_rhs
    // to variables lhs.
    // If returnStmt is non-nil, initVars type-checks the implicit assignment
    // of result expressions orig_rhs to function result parameters lhs.
    func (check *Checker) initVars(lhs []*Var, orig_rhs []syntax.Expr, returnStmt syntax.Stmt) {
    	context := "assignment"
    	if returnStmt != nil {
    		context = "return statement"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/stmt0.go

    }
    
    func assignments1() {
    	b, i, f, c, s := false, 1, 1.0, 1i, "foo"
    	b = i /* ERRORx `cannot use .* in assignment` */
    	i = f /* ERRORx `cannot use .* in assignment` */
    	f = c /* ERRORx `cannot use .* in assignment` */
    	c = s /* ERRORx `cannot use .* in assignment` */
    	s = b /* ERRORx `cannot use .* in assignment` */
    
    	v0, v1, v2 := 1 /* ERROR "assignment mismatch" */ , 2, 3, 4
    	_, _, _ = v0, v1, v2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/ErrorParsingTest.kt

                        )
                    )
                )""".trimIndent()
            parse(code).assert(expected)
        }
    
        @Test
        fun `missing assignment in one of a series of assignments`() {
            val code = """
                val a = 1
                val b = 2
                val c 3
                val d = 4
                val e = 5
            """.trimIndent()
    
            val expected = """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 09:41:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

          if (!result || result == it->second) {
            result = it->getSecond();
            continue;
          }
          // Got conflicting assignments
          return std::nullopt;
        }
        return result;
      }
    
      // Records the device assignment for a resource. If the new assignment
      // conflicts with an existing one, returns an error.
      //
      // If `changed` is provided, assign *changed to true if anything is modified.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    			}
    
    			state.SetDefaultCPUSet(tc.defaultCPUset)
    			state.SetCPUAssignments(tc.assignments)
    
    			state.ClearState()
    			if !cpuset.New().Equals(state.GetDefaultCPUSet()) {
    				t.Fatal("cleared state with non-empty default cpu set")
    			}
    			for pod := range tc.assignments {
    				for container := range tc.assignments[pod] {
    					if _, ok := state.GetCPUSet(pod, container); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/complit.go

    		return false
    	}
    	if !isSimpleName(n.X) {
    		// not a special composite literal assignment
    		return false
    	}
    	x := n.X.(*ir.Name)
    	if !types.Identical(n.X.Type(), n.Y.Type()) {
    		// not a special composite literal assignment
    		return false
    	}
    	if x.Addrtaken() {
    		// If x is address-taken, the RHS may (implicitly) uses LHS.
    		// Not safe to do a special composite literal assignment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/objectGraph/reflectObject.kt

            val referenceResolution = PropertyReferenceResolution(objectOrigin, it)
            when (val assignment = context.resolveAssignment(referenceResolution)) {
                is Assigned -> it to PropertyValueReflection(reflect(assignment.objectOrigin, context), assignment.assignmentMethod)
                else -> if (it.hasDefaultValue) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/assign.go

    		// Check for reasons why we may need to compute later expressions
    		// before this assignment happens.
    
    		if name == nil {
    			// Not a direct assignment to a declared variable.
    			// Conservatively assume any memory access might alias.
    			memWrite = true
    			continue
    		}
    
    		if name.Class == ir.PPARAMOUT && ir.CurFunc.HasDefer() {
    			// Assignments to a result parameter in a function with defers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top