Home
last modified time | relevance | path

Searched refs:AttrValueHasType (Results 1 – 10 of 10) 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.cc215 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, ATTR_TYPE)); \
225 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, "list(" ATTR_TYPE ")")); \
240 Status s = AttrValueHasType(*attr_value, ATTR_TYPE); \
255 Status s = AttrValueHasType(*attr_value, "list(" ATTR_TYPE ")"); \
309 Status s = AttrValueHasType(*attr_value, "string"); in GetNodeAttrString()
320 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, "list(type)")); in GetNodeAttr()
331 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, "tensor")); in GetNodeAttr()
340 TF_RETURN_IF_ERROR(AttrValueHasType(*attr_value, "func")); in GetNodeAttr()
Dkernel_def_util.cc55 if (!AttrValueHasType(*found, "list(type)").ok()) { in KernelAttrsMatch()
Dattr_value_util.h42 Status AttrValueHasType(const AttrValue& attr_value, StringPiece type);
Dop_def_util.cc90 TF_RETURN_WITH_CONTEXT_IF_ERROR(AttrValueHasType(attr_value, attr.type()), in ValidateAttrValue()
313 AttrValueHasType(attr.allowed_values(), list_type), " for attr '", in ValidateOpDef()
Dattr_value_util.cc276 Status AttrValueHasType(const AttrValue& attr_value, StringPiece type) { in AttrValueHasType() function
Dfunction.cc111 Status status = AttrValueHasType(*v, a.type()); in ValidateSignatureWithAttrs()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_cluster_util.cc209 Status s = AttrValueHasType(*attr_value, "string"); in GetXlaClusterForNode()
Dencapsulate_subgraphs_pass.cc1392 TF_RETURN_IF_ERROR(AttrValueHasType(node_attr.second, "string")); in GetFunctionNameAttr()
1396 TF_RETURN_IF_ERROR(AttrValueHasType(node_attr.second, "string")); in GetFunctionNameAttr()
/external/tensorflow/tensorflow/cc/framework/
Dcc_ops_test.cc162 TF_EXPECT_OK(AttrValueHasType(*kernel_attr, "string")); in TEST()