Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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