- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for new_labels (0.22 sec)
-
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) -
pkg/util/labels/labels.go
if labelKey == "" { // Don't need to add a label. return labels } // Clone. newLabels := map[string]string{} for key, value := range labels { newLabels[key] = value } newLabels[labelKey] = labelValue return newLabels } // CloneAndRemoveLabel clones the given map and returns a new map with the given key removed. // Returns the given map, if labelKey is empty.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 11 17:34:12 UTC 2017 - 3.7K bytes - Viewed (0) -
pkg/test/framework/components/ambient/waypoint.go
} oldLabels := oldSvc.ObjectMeta.GetLabels() if oldLabels == nil { oldLabels = make(map[string]string, 1) } newLabels := maps.Clone(oldLabels) if waypoint != "" { newLabels[constants.AmbientUseWaypointLabel] = waypoint } else { delete(newLabels, constants.AmbientUseWaypointLabel) } doLabel := func(labels map[string]string) error { // update needs the latest version
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 6.5K bytes - Viewed (0) -
pkg/test/framework/components/echo/kube/instance.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 16 18:55:23 UTC 2023 - 9K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/MultiLineBuildProgressArea.java
public MultiLineBuildProgressArea() { int row = 0; progressBarLabel = newLabel(row--); entries.add(progressBarLabel); // Parking space for the write cursor parkingLabel = newLabel(row--); entries.add(parkingLabel); } private DefaultRedrawableLabel newLabel(int row) { return new DefaultRedrawableLabel(Cursor.at(row--, 0)); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 5K bytes - Viewed (0) -
pkg/api/testing/conversion.go
continue } newLabel, newValue, err := legacyscheme.Scheme.ConvertFieldLabel(gvk, label, value) if err != nil { t.Errorf("kind=%s label=%s: got unexpected error: %v", kind, label, err) } else { expectedLabel := label if l, exists := labelMap[label]; exists { expectedLabel = l } if newLabel != expectedLabel {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 07 07:01:25 UTC 2018 - 2.4K bytes - Viewed (0) -
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) -
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) -
pkg/registry/core/replicationcontroller/strategy_test.go
if len(errs) > 0 { t.Fatalf("unexpected errors: %v", errs) } // Update the selector - validation should return an error. newController.Spec.Selector["shiny"] = "newlabel" newController.Spec.Template.Labels["shiny"] = "newlabel" errs = Strategy.ValidateUpdate(ctx, newController, oldController) for _, err := range errs { t.Logf("%#v\n", err) } if len(errs) != 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 13 16:56:29 UTC 2019 - 6.9K bytes - Viewed (0) -
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)