Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for declType (0.35 sec)

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

    		IntroducedVersion: version.MajorMinor(1, 0),
    		EnvOptions: []cel.EnvOption{
    			cel.Variable("variables", declType.CelType()),
    		},
    		DeclTypes: []*apiservercel.DeclType{
    			declType,
    		},
    	})
    	if err != nil {
    		return nil, err
    	}
    	return &CompositionEnv{
    		MapType:           declType,
    		EnvSet:            envSet,
    		CompiledVariables: map[string]CompilationResult{},
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/cel/environment/environment_test.go

    			opts: []VersionedOptions{
    				{
    					IntroducedVersion: version.MajorMinor(1, 28),
    					RemovedVersion:    version.MajorMinor(1, 29),
    					DeclTypes:         []*apiservercel.DeclType{widgetsType},
    					EnvOptions: []cel.EnvOption{
    						cel.Variable("widget", cel.ObjectType("Widget")),
    					},
    				},
    			},
    		},
    		{
    			name: "declared type disabled after removed",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/environment/environment.go

    	var progOpts []cel.ProgramOption
    	var declTypes []*apiservercel.DeclType
    
    	for _, opt := range opts {
    		if compatVer.AtLeast(opt.IntroducedVersion) && (opt.RemovedVersion == nil || compatVer.LessThan(opt.RemovedVersion)) {
    			envOpts = append(envOpts, opt.EnvOptions...)
    			progOpts = append(progOpts, opt.ProgramOptions...)
    			declTypes = append(declTypes, opt.DeclTypes...)
    		}
    	}
    
    	if len(declTypes) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/cc/experimental/libtf/impl/scalars.h

      return o << x.get();
    }
    
    /** The overloaded addition operator. */
    template <typename T1, typename T2>
    inline auto operator+(const Scalar<T1>& x1, const Scalar<T2>& x2)
        -> Scalar<decltype(x1.get() + x2.get())> {
      using Ret = decltype(x1 + x2);  // Return type of this function.
      return Ret(x1.get() + x2.get());
    }
    
    using Int64 = Scalar<int64_t>;
    using Float32 = Scalar<float>;
    
    }  // namespace impl
    }  // namespace libtf
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 30 17:28:28 UTC 2021
    - 2K bytes
    - Viewed (0)
  9. tensorflow/c/eager/unified_api_testutil.cc

    #include "tensorflow/core/lib/llvm_rtti/llvm_rtti.h"
    #include "tensorflow/core/platform/errors.h"
    
    namespace tensorflow {
    
    AbstractContext* BuildFunction(const char* fn_name) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TF_ExecutionContext* graph_ctx = TF_CreateFunction(fn_name, status.get());
      return unwrap(graph_ctx);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration_test.cc

    using ::testing::StrEq;
    using ::tsl::testing::IsOk;
    
    // Matches an operation whose `getSymName` equals `name`.
    MATCHER_P(HasSymName, name, "") {
      auto non_const_arg = const_cast<std::remove_const_t<decltype(arg)>>(arg);
      *result_listener << "where the name is " << non_const_arg.getSymName().str();
      return non_const_arg.getSymName() == name;
    }
    
    // Matches an operation that has a StringAttr whose name is `name` and value
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 21:41:08 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top