- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 59 for declTypes (0.24 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/openapi/schemas_test.go
nested, _ := cust.FindField("nested") metadata, _ := cust.FindField("metadata") expectedObjTypeMap := map[string]*apiservercel.DeclType{ "CustomObject": cust, "CustomObject.nested": nested.Type, "CustomObject.metadata": metadata.Type, } objTypeMap := map[string]*apiservercel.DeclType{} for name, t := range typeMap { if t.IsObject() { objTypeMap[name] = t } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 14 17:18:27 UTC 2022 - 13K bytes - Viewed (0) -
tensorflow/c/eager/gradients_test.cc
TF_RETURN_IF_ERROR(RegisterNotDifferentiable(registry, "CheckNumerics")); return absl::OkStatus(); } TEST_P(CppGradients, TestSetAttrString) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); AbstractContextPtr ctx; { AbstractContext* ctx_raw = nullptr; Status s =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
// Convert 'value' to a TF_Tensor then a TFE_TensorHandle. std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> t( TF_AllocateTensor(TF_FLOAT, nullptr, 0, sizeof(value)), TF_DeleteTensor); memcpy(TF_TensorData(t.get()), &value, TF_TensorByteSize(t.get())); std::unique_ptr<TFE_TensorHandle, decltype(&TFE_DeleteTensorHandle)> value_handle(TFE_NewTensorHandle(t.get(), status),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas.go
// if their schema is not exposed. // // The CEL declaration for objects with XPreserveUnknownFields does not expose unknown fields. func SchemaDeclType(s *schema.Structural, isResourceRoot bool) *apiservercel.DeclType { return common.SchemaDeclType(&Structural{Structural: s}, isResourceRoot) } // WithTypeAndObjectMeta ensures the kind, apiVersion and
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc
if (splatLhs && splatRhs) { auto signedLhs = addSign(splatLhs.getSplatValue<ValType>(), etype); auto signedRhs = addSign(splatRhs.getSplatValue<ValType>(), etype); FailureOr<decltype(signedLhs)> result(Convert()(signedLhs, signedRhs)); return succeeded(result) ? SplatElementsAttr::get(type, *result) : Attribute(); } SmallVector<ValType, 6> values;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc
// attribute already exists with a different value, returns an error. template <typename ContainerT, typename = typename std::enable_if< std::is_same<mlir::Type, decltype(*std::declval<ContainerT>() .begin())>::value>::type> Status SetTypeAttribute(absl::string_view name, ContainerT types, AttrValueMap* values) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/custom_gradient_test.cc
/*result=*/outputs)); exp_output->Unref(); return absl::OkStatus(); } TEST_P(CustomGradientTest, ExpWithPassThroughGrad) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); AbstractContextPtr ctx; { AbstractContext* ctx_raw = nullptr; Status s =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
const char* description = nullptr, bool append_hash = false) { std::unique_ptr<TF_Graph, decltype(&TF_DeleteGraph)> func_graph( TF_NewGraph(), TF_DeleteGraph); std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> s(TF_NewStatus(), TF_DeleteStatus);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go
t.Errorf("expected field %q to have type %v, got %v", field.Name, field.Type, declField.Type) } } } func nativeTypeToCELType(t *testing.T, nativeType reflect.Type) *apiservercel.DeclType { switch nativeType { case reflect.TypeOf(""): return apiservercel.StringType case reflect.TypeOf([]string{}): return apiservercel.NewListType(apiservercel.StringType, -1)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/adaptor.go
} func UnstructuredToVal(unstructured any, schema *spec.Schema) ref.Val { return common.UnstructuredToVal(unstructured, &Schema{schema}) } func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType { return common.SchemaDeclType(&Schema{Schema: s}, isResourceRoot) } func MakeMapList(sts *spec.Schema, items []interface{}) (rv common.MapList) { return common.MakeMapList(&Schema{Schema: sts}, items)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 10 21:26:55 UTC 2023 - 4.9K bytes - Viewed (0)