Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 224 for conditional (0.27 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

    For example:
    
    ```python
    # 'condition' tensor is [[True,  False]
    #                        [False, True]]
    # 't' is [[1, 2],
    #         [3, 4]]
    # 'e' is [[5, 6],
    #         [7, 8]]
    select(condition, t, e)  # => [[1, 6], [7, 4]]
    
    
    # 'condition' tensor is [True, False]
    # 't' is [[1, 2],
    #         [3, 4]]
    # 'e' is [[5, 6],
    #         [7, 8]]
    select(condition, t, e) ==> [[1, 2],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  2. src/runtime/pprof/pprof_test.go

    	recursionChainBottom(x, pcs)
    }
    
    func recursionChainBottom(x int, pcs []uintptr) {
    	// This will be called each time, we only care about the last. We
    	// can't make this conditional or this function won't be inlined.
    	dumpCallers(pcs)
    
    	recursionChainTop(x-1, pcs)
    }
    
    func parseProfile(t *testing.T, valBytes []byte, f func(uintptr, []*profile.Location, map[string][]string)) *profile.Profile {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite.go

    	}
    	// Note: leave v.Block intact.  The Block field is used after clobberIfDead.
    	return true
    }
    
    // noteRule is an easy way to track if a rule is matched when writing
    // new ones.  Make the rule of interest also conditional on
    //
    //	noteRule("note to self: rule of interest matched")
    //
    // and that message will print when the rule matches.
    func noteRule(s string) bool {
    	fmt.Println(s)
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    For the use case where custom settings or build files are used to model different behavior (similar to Maven profiles), consider using <<build_environment#sec:gradle_system_properties, system properties>> with conditional logic.
    For example, given a piece of code in either settings or build file:
    ```
    if (System.getProperty("profile") == "custom") {
        println("custom profile")
    } else {
        println("default profile")
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  5. cmd/bucket-handlers.go

    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    	}
    
    	if s3Error == ErrAccessDenied {
    		// Set prefix value for "s3:prefix" policy conditionals.
    		r.Header.Set("prefix", "")
    
    		// Set delimiter value for "s3:delimiter" policy conditionals.
    		r.Header.Set("delimiter", SlashSeparator)
    
    		n := 0
    		// Use the following trick to filter in place
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/apps/v1/types.go

    	// +optional
    	// +patchMergeKey=type
    	// +patchStrategy=merge
    	// +listType=map
    	// +listMapKey=type
    	Conditions []ReplicaSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"`
    }
    
    type ReplicaSetConditionType string
    
    // These are valid conditions of a replica set.
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 49.1K bytes
    - Viewed (0)
  7. pkg/controller/podautoscaler/horizontal.go

    	hpa.Status.Conditions = setConditionInList(hpa.Status.Conditions, conditionType, status, reason, message, args...)
    }
    
    // setConditionInList sets the specific condition type on the given HPA to the specified value with the given
    // reason and message.  The message and args are treated like a format string.  The condition will be added if
    // it is not present.  The new list will be returned.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go

    //	    // +listType=map
    //	    // +listMapKey=type
    //	    Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
    //
    //	    // other fields
    //	}
    type Condition struct {
    	// type of condition in CamelCase or in foo.example.com/CamelCase.
    	// ---
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 10:52:25 UTC 2024
    - 79.2K bytes
    - Viewed (1)
  9. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    		if apierrors.IsNotFound(err) {
    			return nil
    		}
    		return err
    	}
    
    	// Map node's condition to Taints.
    	var taints []v1.Taint
    	for _, condition := range node.Status.Conditions {
    		if taintMap, found := nodeConditionToTaintKeyStatusMap[condition.Type]; found {
    			if taintKey, found := taintMap[condition.Status]; found {
    				taints = append(taints, v1.Taint{
    					Key:    taintKey,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

    // 	    // +listType=map
    // 	    // +listMapKey=type
    // 	    Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
    //
    // 	    // other fields
    // 	}
    message Condition {
      // type of condition in CamelCase or in foo.example.com/CamelCase.
      // ---
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top