Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for new_labels (0.44 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

    std::string GenerateLabels(int count,
                               const llvm::SetVector<char>& available_labels) {
      std::string new_labels(count, 0);
      for (int i = 0; i < count; ++i) {
        new_labels[count - 1 - i] = available_labels[i];
      }
    
      return new_labels;
    }
    
    std::tuple<std::string, std::string, std::string> FlattenEllipsis(
        llvm::StringRef lhs, int lhs_named_label_count, llvm::StringRef rhs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. pkg/volume/downwardapi/downwardapi_test.go

    	}
    }
    
    type reSetUp struct {
    	stepName
    	linkShouldChange bool
    	newLabels        map[string]string
    }
    
    func (step reSetUp) run(test *downwardAPITest) {
    	if step.newLabels != nil {
    		test.pod.ObjectMeta.Labels = step.newLabels
    	}
    
    	currentTarget, err := os.Readlink(filepath.Join(test.volumePath, downwardAPIDir))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 04:48:49 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. pkg/scheduler/eventhandlers_test.go

    		OldLabels map[string]string
    		NewLabels map[string]string
    	}{
    		{
    			Name:      "no labels changed",
    			Changed:   false,
    			OldLabels: map[string]string{"foo": "bar"},
    			NewLabels: map[string]string{"foo": "bar"},
    		},
    		// Labels changed.
    		{
    			Name:      "new node has more labels",
    			Changed:   true,
    			OldLabels: map[string]string{"foo": "bar"},
    			NewLabels: map[string]string{"foo": "bar", "test": "value"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    					}
    				}
    				if seLinuxFileLabel == "" {
    					seLinuxFileLabel = newLabel
    					continue
    				}
    				if seLinuxFileLabel != newLabel {
    					accessMode := getVolumeAccessMode(volumeSpec)
    
    					fullErr := fmt.Errorf("volume %s is used with two different SELinux contexts in the same pod: %q, %q", volumeSpec.Name(), seLinuxFileLabel, newLabel)
    					err := handleSELinuxMetricError(
    						fullErr,
    						seLinuxSupported,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. .github/actions/notify-translations/app/main.py

        time.sleep(sleep_time)
    
        # Get PR
        logging.debug(f"Processing PR: #{github_event.pull_request.number}")
        pr = repo.get_pull(github_event.pull_request.number)
        label_strs = {label.name for label in pr.get_labels()}
        langs = []
        for label in label_strs:
            if label.startswith("lang-") and not label == lang_all_label:
                langs.append(label[5:])
        logging.info(f"PR #{pr.number} has labels: {label_strs}")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Sep 27 23:01:46 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  6. cmd/metrics-v3-types.go

    				continue
    			}
    		}
    
    		labels := make([]string, 0, len(metric.VariableLabels)*2)
    		for k, v := range metric.VariableLabels {
    			if newLabel, ok := renameLabels[k]; ok {
    				labels = append(labels, newLabel, v)
    			} else {
    				labels = append(labels, k, v)
    			}
    		}
    		labels = append(labels, extraLabels...)
    		// If valid non zero value set the metrics
    		if metric.Value > 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/get.go

    			scope.err(err, w, req)
    			return
    		}
    
    		// transform fields
    		// TODO: DecodeParametersInto should do this.
    		if opts.FieldSelector != nil {
    			fn := func(label, value string) (newLabel, newValue string, err error) {
    				return scope.Convertor.ConvertFieldLabel(scope.Kind, label, value)
    			}
    			if opts.FieldSelector, err = opts.FieldSelector.Transform(fn); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. src/go/types/object.go

    // A Label represents a declared label.
    // Labels don't have a type.
    type Label struct {
    	object
    	used bool // set if the label was used
    }
    
    // NewLabel returns a new label.
    func NewLabel(pos token.Pos, pkg *Package, name string) *Label {
    	return &Label{object{pos: pos, pkg: pkg, name: name, typ: Typ[Invalid], color_: black}, false}
    }
    
    // A Builtin represents a built-in function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go

    			scope.err(err, w, req)
    			return
    		}
    
    		// transform fields
    		// TODO: DecodeParametersInto should do this.
    		if listOptions.FieldSelector != nil {
    			fn := func(label, value string) (newLabel, newValue string, err error) {
    				return scope.Convertor.ConvertFieldLabel(scope.Kind, label, value)
    			}
    			if listOptions.FieldSelector, err = listOptions.FieldSelector.Transform(fn); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:32 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/object.go

    // A Label represents a declared label.
    // Labels don't have a type.
    type Label struct {
    	object
    	used bool // set if the label was used
    }
    
    // NewLabel returns a new label.
    func NewLabel(pos syntax.Pos, pkg *Package, name string) *Label {
    	return &Label{object{pos: pos, pkg: pkg, name: name, typ: Typ[Invalid], color_: black}, false}
    }
    
    // A Builtin represents a built-in function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top