Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 59 for declTypes (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/compile.go

    	))
    }
    
    // BuildNamespaceType generates a DeclType for Namespace.
    // Certain nested fields in Namespace (e.g. managedFields, ownerReferences etc.) are omitted in the generated DeclType
    // by design.
    func BuildNamespaceType() *apiservercel.DeclType {
    	field := func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField {
    		return apiservercel.NewDeclField(name, declType, required, nil, nil)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    			}
    		}
    
    		// If any schema related validation errors have been found at this level or deeper, skip CEL expression validation.
    		// Invalid OpenAPISchemas are not always possible to convert into valid CEL DeclTypes, and can lead to CEL
    		// validation error messages that are not actionable (will go away once the schema errors are resolved) and that
    		// are difficult for CEL expression authors to understand.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_test.cc

    using ::testing::HasSubstr;
    
    TEST(PARALLEL_DEVICE, TestBasicCPU) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> config(
          TF_CreateConfig(
              /*enable_xla_compilation=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 29.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

    using ::testing::HasSubstr;
    
    TEST(PARALLEL_DEVICE_LIB, TestOpWithError) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> config(
          TF_CreateConfig(
              /*xla*/ false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 15.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go

    	}
    	if err := compareFieldsForType(t, requestType, requestDeclType, f, fs); err != nil {
    		t.Error(err)
    	}
    }
    
    func compareFieldsForType(t *testing.T, nativeType reflect.Type, declType *apiservercel.DeclType, field func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField, fields func(fields ...*apiservercel.DeclField) map[string]*apiservercel.DeclField) error {
    	for i := 0; i < nativeType.NumField(); i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/custom_device_test.cc

    }
    
    TEST(CUSTOM_DEVICE, MakeVariable) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TFE_Context, decltype(&TFE_DeleteContext)> context(
          TFE_NewContext(opts.get(), status.get()), TFE_DeleteContext);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 23:39:24 UTC 2020
    - 18.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/cel_validation.go

    	Schema *structuralschema.Structural
    	// DeclType is a CEL declaration representation of Schema of this CELSchemaContext node. It must be non-nil.
    	DeclType *cel.DeclType
    }
    
    // converter converts from JSON schema to a structural schema and a CEL declType, or returns an error if the conversion
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 13.8K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

    Variable* Variable::Create(TFE_Context* context, TF_DataType type,
                               const int64_t* dims, const int num_dims,
                               const char* device, TF_Status* status) {
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op(
          TFE_NewOp(context, "VarHandleOp", status), TFE_DeleteOp);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpSetAttrType(op.get(), "dtype", type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 15:44:44 UTC 2021
    - 12.5K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

    namespace parallel_device {
    
    TEST(PARALLEL_DEVICE, TestRemoteBasic) {
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_Context, decltype(&TFE_DeleteContext)> context(
          TFE_NewContext(opts.get(), status.get()), TFE_DeleteContext);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 22:09:57 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/value.go

    type DynValue struct {
    	ID          int64
    	EncodeStyle EncodeStyle
    	value       interface{}
    	exprValue   ref.Val
    	declType    *DeclType
    }
    
    // DeclType returns the policy model type of the dyn value.
    func (dv *DynValue) DeclType() *DeclType {
    	return dv.declType
    }
    
    // ConvertToNative is an implementation of the CEL ref.Val method used to adapt between CEL types
    // and Go-native types.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
Back to top