Home
last modified time | relevance | path

Searched refs:AttrValueHasType (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/framework/
Dattr_value_util_test.cc64 EXPECT_TRUE(AttrValueHasType(V(123), "int").ok()); in TEST()
65 EXPECT_TRUE(AttrValueHasType(V(1.2), "float").ok()); in TEST()
66 EXPECT_TRUE(AttrValueHasType(V(DT_FLOAT), "type").ok()); in TEST()
67 EXPECT_TRUE(AttrValueHasType(F("f", {}), "func").ok()); in TEST()
68 EXPECT_TRUE(AttrValueHasType(Fs({{"f", {}}, {"g", {}}}), "list(func)").ok()); in TEST()
71 EXPECT_FALSE(AttrValueHasType(V(123), "func").ok()); in TEST()
72 EXPECT_FALSE(AttrValueHasType(V(1.2), "int").ok()); in TEST()
73 EXPECT_FALSE(AttrValueHasType(V(DT_FLOAT), "shape").ok()); in TEST()
74 EXPECT_FALSE(AttrValueHasType(F("f", {}), "string").ok()); in TEST()
75 EXPECT_FALSE(AttrValueHasType(P("T"), "float").ok()); in TEST()
[all …]
Dnode_def_util.cc213 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, ATTR_TYPE)); \
223 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, "list(" ATTR_TYPE ")")); \
239 Status s = AttrValueHasType(*attr_value, ATTR_TYPE); \
254 Status s = AttrValueHasType(*attr_value, "list(" ATTR_TYPE ")"); \
337 Status s = AttrValueHasType(*attr_value, "string"); in GetNodeAttrString()
350 Status s = AttrValueHasType(*attr_value, "list(string)"); in TryGetNodeAttr()
367 Status s = AttrValueHasType(*attr_value, "list(shape)"); in TryGetNodeAttr()
382 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, "list(type)")); in GetNodeAttr()
393 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, "tensor")); in GetNodeAttr()
404 Status s = AttrValueHasType(*attr_value, "tensor"); in TryGetNodeAttr()
[all …]
Dkernel_def_util.cc85 Status s = AttrValueHasType(*attr_value, type_str); \ in KernelAttrsMatch()
123 if (!AttrValueHasType(*attr_value, "list(type)").ok()) { in KernelAttrsMatch()
Dattr_value_util.h42 Status AttrValueHasType(const AttrValue& attr_value, StringPiece type);
Dop_def_util.cc91 TF_RETURN_WITH_CONTEXT_IF_ERROR(AttrValueHasType(attr_value, attr.type()), in ValidateAttrValue()
327 AttrValueHasType(attr.allowed_values(), list_type), " for attr '", in ValidateOpDef()
Dattr_value_util.cc299 Status AttrValueHasType(const AttrValue& attr_value, StringPiece type) { in AttrValueHasType() function
Dfunction.cc126 Status status = AttrValueHasType(*v, a.type()); in ValidateSignatureWithAttrs()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dattr_builder.cc147 TF_RETURN_IF_ERROR(AttrValueHasType(attr_tmp_, ATTR_TYPE)); \
/external/tensorflow/tensorflow/cc/framework/
Dcc_ops_test.cc162 TF_EXPECT_OK(AttrValueHasType(*kernel_attr, "string")); in TEST()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_cluster_util.cc202 Status s = AttrValueHasType(*attr_value, "string"); in GetXlaClusterForNode()
Dencapsulate_subgraphs_pass.cc681 TF_RETURN_IF_ERROR(AttrValueHasType(node_attr.second, "string")); in GetFunctionNameAttr()
/external/tensorflow/tensorflow/c/
Dkernels.cc376 tensorflow::AttrValueHasType(*attr, "list(" attr_type ")"); \