Home
last modified time | relevance | path

Searched refs:attr_name (Results 1 – 25 of 134) sorted by relevance

123456

/external/tensorflow/tensorflow/core/framework/
Dnode_def_util.h137 const AttrValue* Find(StringPiece attr_name) const;
141 Status Find(StringPiece attr_name, const AttrValue** attr_value) const;
176 bool HasNodeAttr(const NodeDef& node_def, StringPiece attr_name);
181 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
183 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
185 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
187 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
189 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
191 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
193 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
[all …]
Dnode_def_util.cc64 for (const string& attr_name : attr_names) { in SummarizeAttrsHelper() local
67 strings::StrAppend(&ret, attr_name, "=", in SummarizeAttrsHelper()
68 SummarizeAttrValue(*attrs.Find(attr_name))); in SummarizeAttrsHelper()
155 const AttrValue* AttrSlice::Find(StringPiece attr_name) const { in Find()
169 if (attr.first == attr_name) { in Find()
176 Status AttrSlice::Find(StringPiece attr_name, in Find() argument
178 *attr_value = Find(attr_name); in Find()
182 Status s = errors::NotFound("No attr named '", attr_name, "' in NodeDef:"); in Find()
186 if (!str_util::StartsWith(attr_name, "_") && ndef_ != nullptr) { in Find()
211 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name, \
[all …]
Dkernel_def_builder.h46 KernelDefBuilder& TypeConstraint(const char* attr_name,
50 KernelDefBuilder& TypeConstraint(const char* attr_name, DataType allowed);
55 KernelDefBuilder& TypeConstraint(const char* attr_name);
84 KernelDefBuilder& KernelDefBuilder::TypeConstraint(const char* attr_name) { in TypeConstraint() argument
85 return this->TypeConstraint(attr_name, DataTypeToEnum<T>::v()); in TypeConstraint()
Dkernel_def_builder.cc38 const char* attr_name, gtl::ArraySlice<DataType> allowed) { in TypeConstraint() argument
40 constraint->set_name(attr_name); in TypeConstraint()
48 KernelDefBuilder& KernelDefBuilder::TypeConstraint(const char* attr_name, in TypeConstraint() argument
51 constraint->set_name(attr_name); in TypeConstraint()
/external/skia/modules/sksg/include/
DSkSGNode.h93 #define SG_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
94 const attr_type& get##attr_name() const { return attr_container; } \
95 void set##attr_name(const attr_type& v) { \
100 void set##attr_name(attr_type&& v) { \
106 #define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
107 attr_type get##attr_name() const { return attr_container.get##attr_name(); } \
108 void set##attr_name(const attr_type& v) { \
109 if (attr_container.get##attr_name() == v) return; \
110 attr_container.set##attr_name(v); \
113 void set##attr_name(attr_type&& v) { \
[all …]
/external/skqp/modules/sksg/include/
DSkSGNode.h90 #define SG_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
91 const attr_type& get##attr_name() const { return attr_container; } \
92 void set##attr_name(const attr_type& v) { \
97 void set##attr_name(attr_type&& v) { \
103 #define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
104 attr_type get##attr_name() const { return attr_container.get##attr_name(); } \
105 void set##attr_name(const attr_type& v) { \
106 if (attr_container.get##attr_name() == v) return; \
107 attr_container.set##attr_name(v); \
110 void set##attr_name(attr_type&& v) { \
[all …]
/external/tensorflow/tensorflow/c/eager/
Dc_api.h295 const char* attr_name,
302 TFE_Context* ctx, const char* op_or_function_name, const char* attr_name,
306 const char* attr_name,
309 TF_CAPI_EXPORT extern void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name,
311 TF_CAPI_EXPORT extern void TFE_OpSetAttrFloat(TFE_Op* op, const char* attr_name,
313 TF_CAPI_EXPORT extern void TFE_OpSetAttrBool(TFE_Op* op, const char* attr_name,
315 TF_CAPI_EXPORT extern void TFE_OpSetAttrType(TFE_Op* op, const char* attr_name,
320 TF_CAPI_EXPORT extern void TFE_OpSetAttrShape(TFE_Op* op, const char* attr_name,
330 const char* attr_name,
333 TF_CAPI_EXPORT void TFE_OpSetAttrFunctionName(TFE_Op* op, const char* attr_name,
[all …]
Dc_api.cc631 TF_AttrType TFE_OpGetAttrType(TFE_Op* op, const char* attr_name, in TFE_OpGetAttrType() argument
635 attr_name, &ret, is_list); in TFE_OpGetAttrType()
641 const char* attr_name, unsigned char* is_list, in TFE_OpNameGetAttrType() argument
648 ret = TFE_OpGetAttrType(op, attr_name, is_list, status); in TFE_OpNameGetAttrType()
653 void TFE_OpSetAttrString(TFE_Op* op, const char* attr_name, const void* value, in TFE_OpSetAttrString() argument
656 attr_name, in TFE_OpSetAttrString()
660 void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name, int64_t value) { in TFE_OpSetAttrInt() argument
661 op->operation.MutableAttrs()->Set(attr_name, static_cast<int64>(value)); in TFE_OpSetAttrInt()
664 void TFE_OpSetAttrFloat(TFE_Op* op, const char* attr_name, float value) { in TFE_OpSetAttrFloat() argument
665 op->operation.MutableAttrs()->Set(attr_name, value); in TFE_OpSetAttrFloat()
[all …]
/external/tensorflow/tensorflow/c/
Dc_api.h517 const char* attr_name,
522 const char* attr_name,
527 const char* attr_name, int64_t value);
529 const char* attr_name,
533 const char* attr_name, float value);
535 const char* attr_name,
539 const char* attr_name,
542 const char* attr_name,
546 const char* attr_name,
549 const char* attr_name,
[all …]
Dc_api.cc1072 const char* attr_name, in GetAttrValue() argument
1074 const tensorflow::AttrValue* attr = oper->node.attrs().Find(attr_name); in GetAttrValue()
1077 "' has no attr named '", attr_name, "'."); in GetAttrValue()
1238 void TF_SetAttrString(TF_OperationDescription* desc, const char* attr_name, in TF_SetAttrString() argument
1241 desc->node_builder.Attr(attr_name, s); in TF_SetAttrString()
1244 void TF_SetAttrStringList(TF_OperationDescription* desc, const char* attr_name, in TF_SetAttrStringList() argument
1247 if (strcmp(attr_name, tensorflow::kColocationAttrName) == 0) { in TF_SetAttrStringList()
1259 desc->node_builder.Attr(attr_name, v); in TF_SetAttrStringList()
1263 void TF_SetAttrInt(TF_OperationDescription* desc, const char* attr_name, in TF_SetAttrInt() argument
1267 desc->node_builder.Attr(attr_name, static_cast<tensorflow::int64>(value)); in TF_SetAttrInt()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dattr_builder.h54 Status AttrTypeByName(const AttrTypeMap& m, const string& attr_name,
97 AttrBuilder& Set(StringPiece attr_name, T&& value) { in Set() argument
99 SetInAttrValueMap(node_def_->mutable_attr(), string(attr_name), value); in Set()
125 void SetInAttrValueMap(AttrValueMap* m, const string& attr_name, in SetInAttrValueMap() argument
130 if (AttrSlice(m).Find(attr_name) == nullptr) { in SetInAttrValueMap()
133 m->insert(AttrValueMap::value_type(attr_name, attr_value)); in SetInAttrValueMap()
151 AttrBuilder& AttrBuilder::Set(StringPiece attr_name, int&& value);
153 AttrBuilder& AttrBuilder::Set(StringPiece attr_name, float&& value);
155 AttrBuilder& AttrBuilder::Set(StringPiece attr_name, bool&& value);
157 AttrBuilder& AttrBuilder::Set(StringPiece attr_name,
/external/protobuf/python/
Dstubout.py42 def SmartSet(self, obj, attr_name, new_attr): argument
63 (not inspect.isclass(obj) and obj.__dict__.has_key(attr_name))):
65 orig_attr = getattr(obj, attr_name)
80 orig_attr = getattr(obj, attr_name)
89 old_attribute = obj.__dict__.get(attr_name)
93 self.stubs.append((orig_obj, attr_name, orig_attr))
94 setattr(orig_obj, attr_name, new_attr)
/external/tensorflow/tensorflow/compiler/tf2xla/
Dside_effect_util.cc43 for (const string& attr_name : in SetDeviceOrdinalAttributeForNode() local
46 TF_RETURN_IF_ERROR(GetNodeAttr(node->attrs(), attr_name, &branch_func)); in SetDeviceOrdinalAttributeForNode()
48 node->ClearAttr(attr_name); in SetDeviceOrdinalAttributeForNode()
49 node->AddAttr(attr_name, branch_func); in SetDeviceOrdinalAttributeForNode()
54 for (const string& attr_name : std::vector<string>{"cond", "body"}) { in SetDeviceOrdinalAttributeForNode() local
56 TF_RETURN_IF_ERROR(GetNodeAttr(node->attrs(), attr_name, &branch_func)); in SetDeviceOrdinalAttributeForNode()
58 node->ClearAttr(attr_name); in SetDeviceOrdinalAttributeForNode()
59 node->AddAttr(attr_name, branch_func); in SetDeviceOrdinalAttributeForNode()
Dtf2xla_util.h77 const string& attr_name) { in FunctionAttr() argument
78 return AssociatedFunctionInfo(kFunctionAttr, func_name, attrs, attr_name); in FunctionAttr()
101 const string& attr_name() const { return attr_name_; } in attr_name() function
107 const AttrValueMap& attrs, const string& attr_name) in AssociatedFunctionInfo() argument
111 attr_name_(attr_name) {} in AssociatedFunctionInfo()
/external/autotest/server/cros/update_engine/
Dupdate_engine_event.py72 def _verify_event_attribute(self, attr_name, expected_attr_val, argument
89 ('version' in attr_name and expected_attr_val in actual_attr_val)):
108 attr_name for attr_name, expected_attr_val
111 not self._verify_event_attribute(attr_name, expected_attr_val,
112 actual_event.get(attr_name)))]
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_renames.py64 attr_name = results.get("attr_name")
68 if mod_name and attr_name:
69 new_attr = LOOKUP[(mod_name.value, attr_name.value)]
70 attr_name.replace(Name(new_attr, prefix=attr_name.prefix))
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_renames.py64 attr_name = results.get("attr_name")
68 if mod_name and attr_name:
69 new_attr = unicode(LOOKUP[(mod_name.value, attr_name.value)])
70 attr_name.replace(Name(new_attr, prefix=attr_name.prefix))
/external/tensorflow/tensorflow/compiler/xla/python/
Dnumpy_bridge.cc308 const string& attr_name) { in GetAttrAsString() argument
309 if (!PyObject_HasAttrString(o, attr_name.c_str())) { in GetAttrAsString()
312 PyObject* attr = PyObject_GetAttrString(o, attr_name.c_str()); in GetAttrAsString()
325 const string& attr_name) { in GetAttrAsInt32() argument
326 if (!PyObject_HasAttrString(o, attr_name.c_str())) { in GetAttrAsInt32()
329 PyObject* attr = PyObject_GetAttrString(o, attr_name.c_str()); in GetAttrAsInt32()
586 bool HandleStringAttribute(PyObject* o, const char* attr_name, in HandleStringAttribute() argument
588 if (!PyObject_HasAttrString(o, attr_name)) { in HandleStringAttribute()
591 PyObject* attr = PyObject_GetAttrString(o, attr_name); in HandleStringAttribute()
602 attr_name, numpy::PyObjectCppRepr(attr)); in HandleStringAttribute()
[all …]
/external/tensorflow/tensorflow/python/platform/
Dgoogletest.py156 def SmartSet(self, obj, attr_name, new_attr): argument
185 (not tf_inspect.isclass(obj) and attr_name in obj.__dict__)):
187 orig_attr = getattr(obj, attr_name)
202 orig_attr = getattr(obj, attr_name)
212 old_attribute = obj.__dict__.get(attr_name)
216 self.stubs.append((orig_obj, attr_name, orig_attr))
217 setattr(orig_obj, attr_name, new_attr)
/external/tensorflow/tensorflow/core/graph/
Dnode_builder.h117 NodeBuilder& Attr(StringPiece attr_name, T&& value);
119 NodeBuilder& Attr(StringPiece attr_name, std::initializer_list<T> value);
158 NodeBuilder& NodeBuilder::Attr(StringPiece attr_name, T&& value) { in Attr() argument
159 def_builder_.Attr(attr_name, std::forward<T>(value)); in Attr()
164 NodeBuilder& NodeBuilder::Attr(StringPiece attr_name, in Attr() argument
166 def_builder_.Attr(attr_name, value); in Attr()
/external/elfutils/libdw/
Ddwarf_hasattr.c58 unsigned int attr_name; in dwarf_hasattr() local
59 get_uleb128_unchecked (attr_name, attrp); in dwarf_hasattr()
64 if (attr_name == 0 && attr_form == 0) in dwarf_hasattr()
67 if (attr_name == search_name) in dwarf_hasattr()
Ddwarf_child.c62 unsigned int attr_name; in __libdw_find_attr() local
63 get_uleb128_unchecked (attr_name, attrp); in __libdw_find_attr()
69 if (attr_name == 0 && attr_form == 0) in __libdw_find_attr()
73 if (attr_name == search_name && search_name != INVALID) in __libdw_find_attr()
76 *codep = attr_name; in __libdw_find_attr()
/external/tensorflow/tensorflow/compiler/jit/
Dencapsulate_util.cc34 absl::optional<string> GetStringAttr(const Node& n, const string& attr_name) { in GetStringAttr() argument
35 auto attr = n.attrs().Find(attr_name); in GetStringAttr()
45 Status AppendToListAttr(Node* n, const string& attr_name, const string& value) { in AppendToListAttr() argument
47 Status s = GetNodeAttr(n->attrs(), attr_name, &attr_value); in AppendToListAttr()
52 n->ClearAttr(attr_name); in AppendToListAttr()
54 n->AddAttr(attr_name, attr_value); in AppendToListAttr()
60 void ReplaceAttr(Node* n, const string& attr_name, const T& value) { in ReplaceAttr() argument
61 n->ClearAttr(attr_name); in ReplaceAttr()
62 n->AddAttr(attr_name, value); in ReplaceAttr()
/external/python/cpython3/Doc/c-api/
Dobject.rst30 .. c:function:: int PyObject_HasAttr(PyObject *o, PyObject *attr_name)
32 Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. This
33 is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
41 .. c:function:: int PyObject_HasAttrString(PyObject *o, const char *attr_name)
43 Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. This
44 is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
53 .. c:function:: PyObject* PyObject_GetAttr(PyObject *o, PyObject *attr_name)
55 Retrieve an attribute named *attr_name* from object *o*. Returns the attribute
57 expression ``o.attr_name``.
60 .. c:function:: PyObject* PyObject_GetAttrString(PyObject *o, const char *attr_name)
[all …]
/external/python/cpython2/Doc/c-api/
Dobject.rst17 .. c:function:: int PyObject_HasAttr(PyObject *o, PyObject *attr_name)
19 Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. This
20 is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
24 .. c:function:: int PyObject_HasAttrString(PyObject *o, const char *attr_name)
26 Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. This
27 is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
31 .. c:function:: PyObject* PyObject_GetAttr(PyObject *o, PyObject *attr_name)
33 Retrieve an attribute named *attr_name* from object *o*. Returns the attribute
35 expression ``o.attr_name``.
38 .. c:function:: PyObject* PyObject_GetAttrString(PyObject *o, const char *attr_name)
[all …]

123456