Home
last modified time | relevance | path

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

123456789

/external/tensorflow/tensorflow/c/experimental/op_handler/
Dwrapper_operation.cc47 Status WrapperOperation::SetAttrString(const char* attr_name, const char* data, in SetAttrString() argument
49 return parent_op_->SetAttrString(attr_name, data, length); in SetAttrString()
51 Status WrapperOperation::SetAttrInt(const char* attr_name, int64_t value) { in SetAttrInt() argument
52 return parent_op_->SetAttrInt(attr_name, value); in SetAttrInt()
54 Status WrapperOperation::SetAttrFloat(const char* attr_name, float value) { in SetAttrFloat() argument
55 return parent_op_->SetAttrFloat(attr_name, value); in SetAttrFloat()
57 Status WrapperOperation::SetAttrBool(const char* attr_name, bool value) { in SetAttrBool() argument
58 return parent_op_->SetAttrBool(attr_name, value); in SetAttrBool()
60 Status WrapperOperation::SetAttrType(const char* attr_name, DataType value) { in SetAttrType() argument
61 return parent_op_->SetAttrType(attr_name, value); in SetAttrType()
[all …]
Dwrapper_operation.h38 Status SetAttrString(const char* attr_name, const char* data,
40 Status SetAttrInt(const char* attr_name, int64_t value) override;
41 Status SetAttrFloat(const char* attr_name, float value) override;
42 Status SetAttrBool(const char* attr_name, bool value) override;
43 Status SetAttrType(const char* attr_name, DataType value) override;
44 Status SetAttrShape(const char* attr_name, const int64_t* dims,
46 Status SetAttrFunction(const char* attr_name,
48 Status SetAttrFunctionName(const char* attr_name, const char* value,
50 Status SetAttrTensor(const char* attr_name,
52 Status SetAttrStringList(const char* attr_name, const void* const* values,
[all …]
/external/tensorflow/tensorflow/c/experimental/gradients/tape/
Dtape_operation.cc66 Status TapeOperation::SetAttrString(const char* attr_name, const char* data, in SetAttrString() argument
68 forward_op_.attrs.Set(attr_name, StringPiece(data, length)); in SetAttrString()
69 return parent_op_->SetAttrString(attr_name, data, length); in SetAttrString()
71 Status TapeOperation::SetAttrInt(const char* attr_name, int64_t value) { in SetAttrInt() argument
72 forward_op_.attrs.Set(attr_name, static_cast<int64>(value)); in SetAttrInt()
73 return parent_op_->SetAttrInt(attr_name, value); in SetAttrInt()
75 Status TapeOperation::SetAttrFloat(const char* attr_name, float value) { in SetAttrFloat() argument
76 forward_op_.attrs.Set(attr_name, value); in SetAttrFloat()
77 return parent_op_->SetAttrFloat(attr_name, value); in SetAttrFloat()
79 Status TapeOperation::SetAttrBool(const char* attr_name, bool value) { in SetAttrBool() argument
[all …]
Dtape_operation.h35 Status SetAttrString(const char* attr_name, const char* data,
37 Status SetAttrInt(const char* attr_name, int64_t value) override;
38 Status SetAttrFloat(const char* attr_name, float value) override;
39 Status SetAttrBool(const char* attr_name, bool value) override;
40 Status SetAttrType(const char* attr_name, DataType value) override;
41 Status SetAttrShape(const char* attr_name, const int64_t* dims,
43 Status SetAttrFunction(const char* attr_name,
45 Status SetAttrFunctionName(const char* attr_name, const char* value,
47 Status SetAttrTensor(const char* attr_name,
49 Status SetAttrStringList(const char* attr_name, const void* const* values,
[all …]
/external/tensorflow/tensorflow/core/framework/
Dnode_def_util.h151 const AttrValue* Find(StringPiece attr_name) const;
152 const AttrValue* FindByString(const std::string& attr_name) const;
156 Status Find(StringPiece attr_name, const AttrValue** attr_value) const;
193 bool HasNodeAttr(const NodeDef& node_def, StringPiece attr_name);
198 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
200 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
202 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
204 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
206 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
208 Status GetNodeAttr(const AttrSlice& attrs, StringPiece attr_name,
[all …]
Dkernel_def_builder.cc38 const char* attr_name, gtl::ArraySlice<int64> allowed) { in AttrConstraint() argument
40 constraint->set_name(attr_name); in AttrConstraint()
50 KernelDefBuilder& KernelDefBuilder::AttrConstraint<int64>(const char* attr_name, in AttrConstraint() argument
53 attr_name, in AttrConstraint()
59 const char* attr_name, gtl::ArraySlice<string> allowed) { in AttrConstraint() argument
61 constraint->set_name(attr_name); in AttrConstraint()
71 const char* attr_name, string allowed) { in AttrConstraint() argument
73 attr_name, in AttrConstraint()
79 const char* attr_name, gtl::ArraySlice<const char*> allowed) { in AttrConstraint() argument
81 constraint->set_name(attr_name); in AttrConstraint()
[all …]
Dkernel_def_builder.h46 KernelDefBuilder& AttrConstraint(const char* attr_name,
51 KernelDefBuilder& AttrConstraint(const char* attr_name, T allowed);
57 KernelDefBuilder& TypeConstraint(const char* attr_name,
61 KernelDefBuilder& TypeConstraint(const char* attr_name, DataType allowed);
66 KernelDefBuilder& TypeConstraint(const char* attr_name);
95 KernelDefBuilder& KernelDefBuilder::TypeConstraint(const char* attr_name) { in TypeConstraint() argument
96 return this->TypeConstraint(attr_name, DataTypeToEnum<T>::v()); in TypeConstraint()
Dnode_def_util.cc69 for (const string& attr_name : attr_names) { in SummarizeAttrsHelper() local
72 strings::StrAppend(&ret, attr_name, "=", in SummarizeAttrsHelper()
73 SummarizeAttrValue(*attrs.Find(attr_name))); in SummarizeAttrsHelper()
144 const AttrValue* AttrSlice::Find(StringPiece attr_name) const { in Find()
158 if (attr.first == attr_name) { in Find()
165 const AttrValue* AttrSlice::FindByString(const string& attr_name) const { in FindByString()
166 auto iter = attrs_->find(attr_name); in FindByString()
174 Status AttrSlice::Find(StringPiece attr_name, in Find() argument
176 *attr_value = Find(attr_name); in Find()
180 Status s = errors::NotFound("No attr named '", attr_name, "' in NodeDef:"); in Find()
[all …]
/external/skia/modules/svg/include/
DSkSVGNode.h64 #define SVG_PRES_ATTR(attr_name, attr_type, attr_inherited) \ argument
66 bool set##attr_name(SkSVGAttributeParser::ParseResult< \
68 if (pr.isValid()) { this->set##attr_name(std::move(*pr)); } \
73 const SkSVGProperty<attr_type, attr_inherited>& get##attr_name() const { \
74 return fPresentationAttributes.f##attr_name; \
76 void set##attr_name(const SkSVGProperty<attr_type, attr_inherited>& v) { \
77 auto* dest = &fPresentationAttributes.f##attr_name; \
85 void set##attr_name(SkSVGProperty<attr_type, attr_inherited>&& v) { \
86 auto* dest = &fPresentationAttributes.f##attr_name; \
187 #define _SVG_ATTR_SETTERS(attr_name, attr_type, attr_default, set_cp, set_mv) \ argument
[all …]
/external/tensorflow/tensorflow/c/eager/
Dgradients_internal.h40 Status SetAttrString(AbstractOperation*, const char* attr_name,
42 Status SetAttrInt(AbstractOperation*, const char* attr_name, int64_t value,
44 Status SetAttrFloat(AbstractOperation*, const char* attr_name, float value,
46 Status SetAttrBool(AbstractOperation*, const char* attr_name, bool value,
48 Status SetAttrType(AbstractOperation*, const char* attr_name, DataType value,
50 Status SetAttrShape(AbstractOperation*, const char* attr_name,
52 Status SetAttrFunction(AbstractOperation*, const char* attr_name,
54 Status SetAttrFunctionName(AbstractOperation*, const char* attr_name,
56 Status SetAttrTensor(AbstractOperation*, const char* attr_name,
58 Status SetAttrStringList(AbstractOperation*, const char* attr_name,
[all …]
Dabstract_operation.h88 virtual Status SetAttrString(const char* attr_name, const char* data,
90 virtual Status SetAttrInt(const char* attr_name, int64_t value) = 0;
91 virtual Status SetAttrFloat(const char* attr_name, float value) = 0;
92 virtual Status SetAttrBool(const char* attr_name, bool value) = 0;
93 virtual Status SetAttrType(const char* attr_name, DataType value) = 0;
94 virtual Status SetAttrShape(const char* attr_name, const int64_t* dims,
96 virtual Status SetAttrFunction(const char* attr_name,
98 virtual Status SetAttrFunctionName(const char* attr_name, const char* value,
100 virtual Status SetAttrTensor(const char* attr_name,
102 virtual Status SetAttrStringList(const char* attr_name,
[all …]
Dgradients.cc323 Status SetAttrString(AbstractOperation* op_, const char* attr_name, in SetAttrString() argument
326 forward_op_->attrs.Set(attr_name, StringPiece(data, length)); in SetAttrString()
327 return op_->SetAttrString(attr_name, data, length); in SetAttrString()
329 Status SetAttrInt(AbstractOperation* op_, const char* attr_name, int64_t value, in SetAttrInt() argument
331 forward_op_->attrs.Set(attr_name, static_cast<int64>(value)); in SetAttrInt()
332 return op_->SetAttrInt(attr_name, value); in SetAttrInt()
334 Status SetAttrFloat(AbstractOperation* op_, const char* attr_name, float value, in SetAttrFloat() argument
336 forward_op_->attrs.Set(attr_name, value); in SetAttrFloat()
337 return op_->SetAttrFloat(attr_name, value); in SetAttrFloat()
339 Status SetAttrBool(AbstractOperation* op_, const char* attr_name, bool value, in SetAttrBool() argument
[all …]
Dc_api_unified_experimental_graph.cc173 Status SetAttrString(const char* attr_name, const char* data, in SetAttrString() argument
176 op_->node_builder.Attr(attr_name, s); in SetAttrString()
179 Status SetAttrInt(const char* attr_name, int64_t value) override { in SetAttrInt() argument
182 op_->node_builder.Attr(attr_name, static_cast<tensorflow::int64>(value)); in SetAttrInt()
185 Status SetAttrFloat(const char* attr_name, float value) override { in SetAttrFloat() argument
186 op_->node_builder.Attr(attr_name, value); in SetAttrFloat()
189 Status SetAttrBool(const char* attr_name, bool value) override { in SetAttrBool() argument
190 op_->node_builder.Attr(attr_name, value); in SetAttrBool()
193 Status SetAttrType(const char* const attr_name, DataType value) override { in SetAttrType() argument
199 op_->node_builder.Attr(attr_name, value); in SetAttrType()
[all …]
Dc_api.h293 const char* attr_name,
300 TFE_Context* ctx, const char* op_or_function_name, const char* attr_name,
304 const char* attr_name,
307 TF_CAPI_EXPORT extern void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name,
309 TF_CAPI_EXPORT extern void TFE_OpSetAttrFloat(TFE_Op* op, const char* attr_name,
311 TF_CAPI_EXPORT extern void TFE_OpSetAttrBool(TFE_Op* op, const char* attr_name,
313 TF_CAPI_EXPORT extern void TFE_OpSetAttrType(TFE_Op* op, const char* attr_name,
318 TF_CAPI_EXPORT extern void TFE_OpSetAttrShape(TFE_Op* op, const char* attr_name,
328 const char* attr_name,
331 TF_CAPI_EXPORT void TFE_OpSetAttrFunctionName(TFE_Op* op, const char* attr_name,
[all …]
Dc_api.cc693 TF_AttrType TFE_OpGetAttrType(TFE_Op* op, const char* attr_name, in TFE_OpGetAttrType() argument
704 tensorflow::AttrTypeByName(*attr_types_, attr_name, &ret, is_list); in TFE_OpGetAttrType()
710 const char* attr_name, unsigned char* is_list, in TFE_OpNameGetAttrType() argument
715 ret = TFE_OpGetAttrType(op, attr_name, is_list, status); in TFE_OpNameGetAttrType()
723 void TFE_OpSetAttrString(TFE_Op* op, const char* attr_name, const void* value, in TFE_OpSetAttrString() argument
726 attr_name, static_cast<const char*>(value), length); in TFE_OpSetAttrString()
728 LOG(WARNING) << "Unable to set attribute: " << attr_name; in TFE_OpSetAttrString()
732 void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name, int64_t value) { in TFE_OpSetAttrInt() argument
733 auto s = tensorflow::unwrap(op)->SetAttrInt(attr_name, value); in TFE_OpSetAttrInt()
735 LOG(WARNING) << "Unable to set attribute: " << attr_name; in TFE_OpSetAttrInt()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dattr_builder.h56 Status AttrTypeByName(const AttrTypeMap& m, const string& attr_name,
119 AttrBuilder& Set(StringPiece attr_name, T&& value) { in Set() argument
121 AddAttrIfNotPresent(attr_name, attr_tmp_); in Set()
128 AttrBuilder& Set(StringPiece attr_name, const AttrValue& value) { in Set() argument
129 AddAttrIfNotPresent(attr_name, value); in Set()
139 Status Get(StringPiece attr_name, T* value) const { in Get() argument
144 return errors::NotFound("No attr named'", attr_name, in Get()
147 return GetNodeAttr(AttrSlice(node_def_), attr_name, value); in Get()
173 bool GetInt(absl::string_view attr_name, int64_t* result) const override;
174 bool GetFloat(absl::string_view attr_name, float* result) const override;
[all …]
Deager_operation.cc43 Status EagerOperation::SetAttrValue(const char* attr_name, in SetAttrValue() argument
45 MutableAttrs()->Set(attr_name, value); in SetAttrValue()
49 Status EagerOperation::SetAttrString(const char* attr_name, const char* data, in SetAttrString() argument
51 MutableAttrs()->Set(attr_name, StringPiece(data, length)); in SetAttrString()
55 Status EagerOperation::SetAttrInt(const char* attr_name, int64_t value) { in SetAttrInt() argument
56 MutableAttrs()->Set(attr_name, static_cast<int64>(value)); in SetAttrInt()
60 Status EagerOperation::SetAttrFloat(const char* attr_name, float value) { in SetAttrFloat() argument
61 MutableAttrs()->Set(attr_name, value); in SetAttrFloat()
65 Status EagerOperation::SetAttrBool(const char* attr_name, bool value) { in SetAttrBool() argument
66 MutableAttrs()->Set(attr_name, value); in SetAttrBool()
[all …]
Deager_operation.h84 Status SetAttrValue(const char* attr_name, const AttrValue& value);
97 Status SetAttrString(const char* attr_name, const char* data,
99 Status SetAttrInt(const char* attr_name, int64_t value) override;
100 Status SetAttrFloat(const char* attr_name, float value) override;
101 Status SetAttrBool(const char* attr_name, bool value) override;
102 Status SetAttrType(const char* attr_name, DataType value) override;
103 Status SetAttrShape(const char* attr_name, const int64_t* dims,
105 Status SetAttrFunction(const char* attr_name,
107 Status SetAttrFunctionName(const char* attr_name, const char* data,
109 Status SetAttrTensor(const char* attr_name,
[all …]
Dattr_builder.cc140 Status AttrBuilder::Get(StringPiece attr_name, TYPE* value) const { \
141 auto it = encoded_attrs_.find(string(attr_name)); \
143 return errors::NotFound("No attr named'", attr_name, \
190 bool ValueMatchesDefault(const OpDef* op_def, const string& attr_name, in ValueMatchesDefault() argument
195 if (attr_def.name() == attr_name && attr_def.has_default_value() && in ValueMatchesDefault()
219 void AttrBuilder::AddAttrIfNotPresent(StringPiece attr_name, in AddAttrIfNotPresent() argument
221 encoded_attrs_.emplace(string(attr_name), value.SerializeAsString()); in AddAttrIfNotPresent()
242 Status AttrTypeByName(const AttrTypeMap& m, const string& attr_name, in AttrTypeByName() argument
244 auto* t = gtl::FindOrNull(m, attr_name); in AttrTypeByName()
246 return errors::InvalidArgument("Attribute '", attr_name, in AttrTypeByName()
[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/skia/modules/sksg/include/
DSkSGNode.h98 #define SG_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
99 const attr_type& get##attr_name() const { return attr_container; } \
100 void set##attr_name(const attr_type& v) { \
105 void set##attr_name(attr_type&& v) { \
111 #define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container) \ argument
112 attr_type get##attr_name() const { return attr_container.get##attr_name(); } \
113 void set##attr_name(const attr_type& v) { \
114 if (attr_container.get##attr_name() == v) return; \
115 attr_container.set##attr_name(v); \
118 void set##attr_name(attr_type&& v) { \
[all …]
/external/tensorflow/tensorflow/c/
Dkernels.h110 TF_KernelBuilder* kernel_builder, const char* attr_name,
202 TF_OpKernelConstruction* ctx, const char* attr_name, int32_t* list_size,
211 TF_OpKernelConstruction* ctx, const char* attr_name, TF_DataType* val,
220 TF_OpKernelConstruction* ctx, const char* attr_name, int32_t* val,
229 TF_OpKernelConstruction* ctx, const char* attr_name, int64_t* val,
238 TF_OpKernelConstruction* ctx, const char* attr_name, float* val,
247 TF_OpKernelConstruction* ctx, const char* attr_name, TF_Bool* val,
259 TF_OpKernelConstruction* ctx, const char* attr_name, char* val,
269 TF_OpKernelConstruction* ctx, const char* attr_name, TF_DataType* vals,
279 TF_OpKernelConstruction* ctx, const char* attr_name, int32_t* vals,
[all …]
Dc_api.h317 const char* attr_name,
322 const char* attr_name,
327 const char* attr_name, int64_t value);
329 const char* attr_name,
333 const char* attr_name, float value);
335 const char* attr_name,
339 const char* attr_name,
342 const char* attr_name,
346 const char* attr_name,
349 const char* attr_name,
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/c/
Dc_api_unified_experimental_mlir.cc153 Status SetAttrString(const char* attr_name, const char* data,
155 Status SetAttrInt(const char* attr_name, int64_t value) override;
156 Status SetAttrFloat(const char* attr_name, float value) override;
157 Status SetAttrBool(const char* attr_name, bool value) override;
158 Status SetAttrType(const char* attr_name,
160 Status SetAttrShape(const char* attr_name, const int64_t* dims,
162 Status SetAttrFunction(const char* attr_name,
164 Status SetAttrFunctionName(const char* attr_name, const char* value,
166 Status SetAttrTensor(const char* attr_name,
168 Status SetAttrStringList(const char* attr_name, const void* const* values,
[all …]
/external/tensorflow/tensorflow/java/src/main/native/
Deager_operation_builder_jni.cc163 JNIEnv* env, jclass clazz, jlong op_handle, jstring attr_name, in Java_org_tensorflow_EagerOperationBuilder_setAttrString() argument
169 const char* cname = env->GetStringUTFChars(attr_name, nullptr); in Java_org_tensorflow_EagerOperationBuilder_setAttrString()
173 env->ReleaseStringUTFChars(attr_name, cname); in Java_org_tensorflow_EagerOperationBuilder_setAttrString()
178 JNIEnv* env, jclass object, jlong op_handle, jstring attr_name, in Java_org_tensorflow_EagerOperationBuilder_setAttrStringList() argument
182 const char* cname = env->GetStringUTFChars(attr_name, nullptr); in Java_org_tensorflow_EagerOperationBuilder_setAttrStringList()
203 env->ReleaseStringUTFChars(attr_name, cname); in Java_org_tensorflow_EagerOperationBuilder_setAttrStringList()
209 JNIEnv* env, jclass clazz, jlong op_handle, jstring attr_name, \
216 const char* cname = env->GetStringUTFChars(attr_name, nullptr); \
218 env->ReleaseStringUTFChars(attr_name, cname); \
224 JNIEnv* env, jclass clazz, jlong op_handle, jstring attr_name, \
[all …]

123456789