- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 52 for declTypes (0.17 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
Status s = StatusFromTF_Status(status.get()); CHECK_EQ(errors::OK, s.code()) << s.message(); } }; TEST_P(UnifiedCAPI, TestBasicEager) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_ContextOptionsSetTfrt(opts, std::get<1>(GetParam()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 21:44:52 UTC 2023 - 39.1K bytes - Viewed (0) -
tensorflow/c/eager/unified_api_testutil.h
Status TestTensorHandleWithDims(AbstractContext* ctx, const T* data, const int64_t* dims, int num_dims, AbstractTensorHandle** tensor) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TFE_Context* eager_ctx = TF_ExecutionContextGetTFEContext(wrap(ctx), status.get()); TF_RETURN_IF_ERROR(StatusFromTF_Status(status.get()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 13:57:45 UTC 2024 - 4K bytes - Viewed (0)