Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for declType (0.39 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/types.go

    		ev[i] = types.DefaultTypeAdapter.NativeToValue(e)
    	}
    	return ev
    }
    
    func allTypesForDecl(declTypes []*DeclType) map[string]*DeclType {
    	if declTypes == nil {
    		return nil
    	}
    	allTypes := map[string]*DeclType{}
    	for _, declType := range declTypes {
    		for k, t := range FieldTypeMap(declType.TypeName(), declType) {
    			allTypes[k] = t
    		}
    	}
    
    	return allTypes
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile.go

    	))
    }
    
    // buildResourceAttributesType generates a DeclType for ResourceAttributes.
    // if attributes are added here, also add to convertObjectToUnstructured.
    func buildResourceAttributesType(field func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField, fields func(fields ...*apiservercel.DeclField) map[string]*apiservercel.DeclField) *apiservercel.DeclType {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 02 20:56:52 UTC 2023
    - 7.9K 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/admission/plugin/policy/validating/typechecking.go

    			EnvOptions:        varOpts,
    			DeclTypes:         declTypes,
    		},
    	)
    }
    
    // createVariableOpts creates a slice of EnvOption
    // that can be used for creating a CEL env containing variables of declType.
    // declType can be nil, in which case the variables will be of DynType.
    func createVariableOpts(declType *apiservercel.DeclType, variables ...string) []cel.EnvOption {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile.go

    		AST:                ast,
    		ExpressionAccessor: expressionAccessor,
    	}, nil
    }
    
    func buildUserType() *apiservercel.DeclType {
    	field := func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField {
    		return apiservercel.NewDeclField(name, declType, required, nil, nil)
    	}
    	fields := func(fields ...*apiservercel.DeclField) map[string]*apiservercel.DeclField {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    	oldSelfEnvSet, optionalOldSelfEnvSet, err := prepareEnvSet(baseEnvSet, declType)
    	if err != nil {
    		return nil, err
    	}
    	estimator := newCostEstimator(declType)
    	// compResults is the return value which saves a list of compilation results in the same order as x-kubernetes-validations rules.
    	compResults := make([]CompilationResult, len(celRules))
    	maxCardinality := maxCardinality(declType.MinSerializedSize)
    	for i, rule := range celRules {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. 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)
Back to top