Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for OptionalNone (0.24 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    			expectValue: types.OptionalNone,
    		},
    		{
    			name:        "example_usage_dns1123Subdomain",
    			expr:        `format.dns1123Subdomain().validate("apiextensions.k8s.io")`,
    			expectValue: types.OptionalNone,
    		},
    		{
    			name:        "example_usage_qualifiedName",
    			expr:        `format.qualifiedName().validate("apiextensions.k8s.io/v1beta1")`,
    			expectValue: types.OptionalNone,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/decompose_optionals.mlir

      return
    }
    
    // -----
    
    // CHECK-LABEL: @none
    func.func @none(%arg0: tensor<!tf_type.variant<tensor<f32>>>) {
      // CHECK-NOT: Optional
      %0 = "tf.OptionalNone"() : () -> tensor<!tf_type.variant<tensor<f32>>>
      return
    }
    
    // -----
    
    // CHECK-LABEL: @partitioned_calls
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val_test.go

    				"zero": types.OptionalOf(types.IntZero),
    			},
    			expected: map[string]any{
    				"zero": int64(0),
    			},
    		},
    		{
    			name: "none",
    			fields: map[string]ref.Val{
    				"absent": types.OptionalNone,
    			},
    			expected: map[string]any{
    				// right now no way to differ from a plain null.
    				// we will need to filter out optional.none() before this conversion.
    				"absent": nil,
    			},
    		},
    	} {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/mutation/optional_test.go

    		},
    		{
    			name:        "access existing field, return none",
    			expression:  `Object{}.?existing`,
    			expectedVal: celtypes.OptionalNone,
    		},
    		{
    			name:        "map non-existing field, return none",
    			expression:  `{"foo": 1}[?"bar"]`,
    			expectedVal: celtypes.OptionalNone,
    		},
    		{
    			name:        "map existing field, return actual value",
    			expression:  `{"foo": 1}[?"foo"]`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 21:52:39 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/library/format.go

    			nameString, ok := name.Value().(string)
    			if !ok {
    				return types.MaybeNoSuchOverloadErr(name)
    			}
    
    			f, ok := ConstantFormats[nameString]
    			if !ok {
    				return types.OptionalNone
    			}
    			return types.OptionalOf(f)
    		})),
    	},
    }
    
    func formatValidate(arg1, arg2 ref.Val) ref.Val {
    	f, ok := arg1.Value().(*apiservercel.Format)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_device_ops.h

                                  .HostMemory("string_handle"),                    \
                              data::IteratorFromStringHandleOp);                   \
      REGISTER_KERNEL_BUILDER(Name("OptionalNone").Device(DEVICE),                 \
                              data::OptionalNoneOp);                               \
      REGISTER_KERNEL_BUILDER(Name("OptionalFromValue").Device(DEVICE),            \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 23 19:28:25 UTC 2021
    - 17.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    // Moves TPUCompileMlir ops as far to the front as possible.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateMoveTpuCompileToFrontPass();
    
    // Decomposes OptionalFromValue, OptionalGetValue, OptionalNone,
    // and OptionalHasValue
    std::unique_ptr<OperationPass<ModuleOp>> CreateDecomposeOptionalsPass();
    
    //===----------------------------------------------------------------------===//
    // XlaCallModule
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    	}
    	optionalVA := &validationActivation{
    		self:       va.self,
    		hasOldSelf: true, // this means the oldSelf variable is defined for CEL to reference, not that it has a value
    		oldSelf:    types.OptionalNone,
    	}
    
    	if oldObj != nil {
    		va.oldSelf = UnstructuredToVal(oldObj, sts) // +k8s:verify-mutation:reason=clone
    		va.hasOldSelf = true
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

    }
    
    def DecomposeOptionalsPass : Pass<"tf-decompose-optionals", "ModuleOp"> {
      let summary = "Decomposes ops of the 'Optional' family";
      let description = [{
        Turns OptionalFromValue, OptionalGetValue, OptionalNone,
        and OptionalHasValue into identities.
    
        For example, if we have:
    
          %1 = "tf.OptionalFromValue"(%0) : (tensor<f32>) -> !tf_type.variant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      }];
    
      let arguments = (ins
        TF_VariantTensor:$optional
      );
    
      let results = (outs
        TF_BoolTensor:$has_value
      );
    }
    
    def TF_OptionalNoneOp : TF_Op<"OptionalNone", [Pure]> {
      let summary = "Creates an Optional variant with no value.";
    
      let arguments = (ins);
    
      let results = (outs
        TF_VariantTensor:$optional
      );
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top