Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for strValues (0.32 sec)

  1. staging/src/k8s.io/apimachinery/pkg/labels/zz_generated.deepcopy.go

    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *Requirement) DeepCopyInto(out *Requirement) {
    	*out = *in
    	if in.strValues != nil {
    		in, out := &in.strValues, &out.strValues
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Requirement.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/labels/selector.go

    		}
    
    		// There should be only one strValue in r.strValues, and can be converted to an integer.
    		if len(r.strValues) != 1 {
    			klog.V(10).Infof("Invalid values count %+v of requirement %#v, for 'Gt', 'Lt' operators, exactly one value is required", len(r.strValues), r)
    			return false
    		}
    
    		var rValue int64
    		for i := range r.strValues {
    			rValue, err = strconv.ParseInt(r.strValues[i], 10, 64)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 31.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    				strValues: []string{"foo", "bar"},
    			},
    			y: &Requirement{
    				key:       "key",
    				operator:  selection.In,
    				strValues: []string{"foo", "bar"},
    			},
    			want: false,
    		},
    		{
    			name: "requirements with different values should not be equal",
    			x: &Requirement{
    				key:       "key",
    				operator:  selection.Equals,
    				strValues: []string{"foo", "bar"},
    			},
    			y: &Requirement{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/plugin/internal/AbstractMavenPluginParametersValidator.java

            if (config.getChildCount() > 0) {
                return true;
            }
    
            String strValue = config.getValue();
    
            if (strValue == null || strValue.isEmpty()) {
                return false;
            }
    
            if (isIgnoredProperty(strValue)) {
                return false;
            }
    
            // for declaration like @Parameter( property = "config.property" )
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/PropertyReportRenderer.java

            String strValue;
            try {
                strValue = String.valueOf(value);
            } catch (Exception e) {
                String valueClass = value != null ? String.valueOf(value.getClass()) : "null";
                LOGGER.warn("Rendering of the property '{}' with value type '{}' failed with exception", name, valueClass, e);
                strValue = valueClass + " [Rendering failed]";
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 24 15:02:02 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/plugin/internal/AbstractMavenPluginDescriptorSourcedParametersValidator.java

            super(pluginValidationManager);
        }
    
        @Override
        protected boolean isIgnoredProperty(String strValue) {
            if (!strValue.startsWith("${")) {
                return false;
            }
    
            String propertyName = strValue.replace("${", "").replace("}", "");
    
            if (IGNORED_PROPERTY_VALUES.contains(propertyName)) {
                return true;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/PropertyReportTask.java

                String strValue;
                try {
                    strValue = String.valueOf(value);
                } catch (Exception e) {
                    String valueClass = value != null ? String.valueOf(value.getClass()) : "null";
                    warnings.add(new PropertyWarning(name, valueClass, e));
                    strValue = valueClass + " [Rendering failed]";
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 24 23:13:41 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc

      return var_handle_ops;
    }
    
    // Creates a `ConstOp` of 1-dimensional TF::StringType out of `str_values`.
    TF::ConstOp Create1DStringConst(const ArrayRef<std::string> str_values,
                                    const Location loc, OpBuilder& builder) {
      const auto tensor_type =
          RankedTensorType::get(/*shape=*/{static_cast<int64_t>(str_values.size())},
                                /*elementType=*/builder.getType<TF::StringType>());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 12 06:02:20 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

      return var_handle_ops;
    }
    
    // Creates a `ConstOp` of 1-dimensional TF::StringType out of `str_values`.
    TF::ConstOp Create1DStringConst(const ArrayRef<std::string> str_values,
                                    const Location loc, OpBuilder& builder) {
      const auto tensor_type =
          RankedTensorType::get(/*shape=*/{static_cast<int64_t>(str_values.size())},
                                /*elementType=*/builder.getType<TF::StringType>());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/labels.go

    	return ""
    }
    
    func getIntValueFromLabel(labels map[string]string, label string) (int, error) {
    	if strValue, found := labels[label]; found {
    		intValue, err := strconv.Atoi(strValue)
    		if err != nil {
    			// This really should not happen. Just set value to 0 to handle this abnormal case
    			return 0, err
    		}
    		return intValue, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top