- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 34 for declTypes (0.24 sec)
-
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) -
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/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/cc/experimental/libtf/value.h
static TaggedValue List() { TaggedValue v; v.type_ = LIST; using T = decltype(v.data_.list); new (&v.data_.list) T(std::make_shared<T::element_type>()); return v; } /// Constructs a TaggedValue with type TUPLE. static TaggedValue Tuple() { TaggedValue v; v.type_ = TUPLE; using T = decltype(v.data_.tuple); new (&v.data_.tuple) T(std::make_shared<T::element_type>()); return v;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:23:45 UTC 2024 - 20.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
// exist. declType is expected to be a CEL DeclType corresponding to the structural schema. // perCallLimit was added for testing purpose only. Callers should always use const PerCallLimit from k8s.io/apiserver/pkg/apis/cel/config.go as input. func validator(validationSchema, nodeSchema *schema.Structural, isResourceRoot bool, declType *cel.DeclType, perCallLimit uint64) *Validator { compilationSchema := *nodeSchema
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_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: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/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: Thu May 16 20:13:14 UTC 2024 - 14K bytes - Viewed (0) -
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/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) -
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)