Home
last modified time | relevance | path

Searched refs:attrs_ (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dexample_parsing_ops.cc52 OP_REQUIRES_OK(ctx, attrs_.Init(ctx, op_version_)); in ParseExampleOp()
151 if (dense_keys_t.size() != attrs_.num_dense) { in CheckInputShapes()
154 dense_keys_t.size(), " vs. ", attrs_.num_dense); in CheckInputShapes()
156 if (sparse_keys_t.size() != attrs_.num_sparse) { in CheckInputShapes()
159 sparse_keys_t.size(), " vs. ", attrs_.num_sparse); in CheckInputShapes()
161 if (ragged_keys_t.size() != attrs_.num_ragged) { in CheckInputShapes()
164 ragged_keys_t.size(), " vs. ", attrs_.num_ragged); in CheckInputShapes()
168 if (dense_defaults.size() != attrs_.num_dense) { in CheckInputShapes()
171 dense_defaults.size(), " vs. ", attrs_.num_dense); in CheckInputShapes()
174 for (int d = 0; d < static_cast<int>(attrs_.num_dense); ++d) { in CheckInputShapes()
[all …]
/external/pdfium/core/fxcrt/xml/
Dcfx_xmlelement.cpp29 node->attrs_ = attrs_; in Clone()
89 for (auto it : attrs_) { in Save()
131 return attrs_.find(name) != attrs_.end(); in HasAttribute()
135 auto it = attrs_.find(name); in GetAttribute()
136 return it != attrs_.end() ? it->second : WideString(); in GetAttribute()
141 attrs_[name] = value; in SetAttribute()
145 attrs_.erase(name); in RemoveAttribute()
Dcfx_xmlelement.h30 return attrs_; in GetAttributes()
51 std::map<WideString, WideString> attrs_; variable
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dconv_ops.cc51 attrs_ = attrs.ValueOrDie(); in ConvOp()
56 ctx->op_kernel().type_string(), ctx->Input(0), ctx->Input(1), attrs_); in Compile()
62 ConvOpAttrs attrs_; member in tensorflow::__anonaf74c5080111::ConvOp
102 attrs_ = attrs.ValueOrDie(); in ConvBackpropInputOp()
113 ctx->Input(1), ctx->Input(2), attrs_); in Compile()
119 ConvOpAttrs attrs_; member in tensorflow::__anonaf74c5080111::ConvBackpropInputOp
163 attrs_ = attrs.ValueOrDie(); in ConvBackpropFilterOp()
174 ctx->Input(2), attrs_); in Compile()
180 ConvOpAttrs attrs_; member in tensorflow::__anonaf74c5080111::ConvBackpropFilterOp
/external/tensorflow/tensorflow/core/common_runtime/eager/
Deager_operation.h58 tensorflow::AttrBuilder* MutableAttrs() { return &attrs_; } in MutableAttrs()
59 const tensorflow::AttrBuilder& Attrs() const { return attrs_; } in Attrs()
75 const tensorflow::string& Name() const { return attrs_.op_name(); } in Name()
136 tensorflow::AttrBuilder attrs_; variable
160 attrs_.NumInputs(static_cast<int>(inputs_.size())); in AddInput()
175 attrs_.NumInputs(static_cast<int>(inputs_.size())); in ConsumeInput()
Deager_operation.cc43 attrs_.Reset(op); in Reset()
/external/webrtc/webrtc/p2p/base/
Dstun.cc50 attrs_ = new std::vector<StunAttribute*>(); in StunMessage()
54 for (size_t i = 0; i < attrs_->size(); i++) in ~StunMessage()
55 delete (*attrs_)[i]; in ~StunMessage()
56 delete attrs_; in ~StunMessage()
79 attrs_->push_back(attr); in AddAttribute()
330 attrs_->resize(0); in Read()
351 attrs_->push_back(attr); in Read()
366 for (size_t i = 0; i < attrs_->size(); ++i) { in Write()
367 buf->WriteUInt16((*attrs_)[i]->type()); in Write()
368 buf->WriteUInt16(static_cast<uint16_t>((*attrs_)[i]->length())); in Write()
[all …]
Dstun.h204 std::vector<StunAttribute*>* attrs_; variable
/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla_util.h104 const AttrValueMap& attrs() const { return attrs_; } in attrs()
111 attrs_(attrs), in AssociatedFunctionInfo()
117 AttrValueMap attrs_; variable
/external/tensorflow/tensorflow/core/graph/
Dgraph_def_builder.h131 attrs_.emplace_back(string(name), AttrValue()); in WithAttrImpl()
132 SetAttrValue(std::forward<T>(value), &attrs_.back().second); in WithAttrImpl()
141 std::vector<std::pair<string, AttrValue>> attrs_; variable
Dgraph_def_builder.cc82 for (const auto& attr : attrs_) { in FinalizeBuilder()
/external/tensorflow/tensorflow/core/grappler/utils/
Dgraph_view_internal.h133 attrs_(AttrSlice(graph_view->graph()->node(node_index))) {} in NodeViewInternal()
136 : graph_view_(nullptr), node_index_(kMissingIndex), attrs_(AttrSlice()) {} in NodeViewInternal()
226 return attrs_.Find(attr_name); in GetAttr()
230 const AttrSlice& GetAttrs() const { return attrs_; } in GetAttrs()
233 int NumAttrs() const { return attrs_.size(); } in NumAttrs()
237 return attrs_.Find(attr_name) != nullptr; in HasAttr()
252 AttrSlice attrs_; variable
/external/tensorflow/tensorflow/core/framework/
Dnode_def_util.cc50 attrs_ = kEmptyAttrValueMap; in AttrSlice()
54 : ndef_(&node_def), attrs_(&ndef_->attr()) {} in AttrSlice()
56 AttrSlice::AttrSlice(const AttrValueMap* a) : ndef_(nullptr), attrs_(a) {} in AttrSlice()
93 attr_key_vals.reserve(attrs_->size()); in DebugString()
153 for (const auto& attr : *attrs_) { in Find()
180 for (const auto& attr : *other.attrs_) { in EqualAttrs()
181 auto iter = attrs_->find(attr.first); in EqualAttrs()
182 if (iter == attrs_->end()) return false; in EqualAttrs()
Dnode_def_util.h140 int size() const { return attrs_->size(); } in size()
174 AttrValueMap::const_iterator begin() const { return attrs_->begin(); } in begin()
175 AttrValueMap::const_iterator end() const { return attrs_->end(); } in end()
181 const AttrValueMap* attrs_; variable
Dop_def_builder.h165 std::vector<string> attrs_; variable
Dshape_inference.cc41 : graph_def_version_(graph_def_version), attrs_(attrs) { in InferenceContext()
92 : graph_def_version_(graph_def_version), attrs_(attrs) { in InferenceContext()
112 DCHECK(output(i).IsSet()) << i << " for " << attrs_.SummarizeNode(); in Run()
172 NameRangesForNode(attrs_, op_def, &input_name_map_, &output_name_map_); in PreInputInit()
289 return strings::StrCat("InferenceContext for node: ", attrs_.SummarizeNode()); in DebugString()
1118 " for '", attrs_.SummarizeNode(), in AttachContext()
Dshape_inference.h304 const AttrSlice& attrs() const { return attrs_; } in attrs()
733 AttrSlice attrs_; variable
780 return GetNodeAttr(attrs_, attr_name, value); in GetAttr()
Dop_def_builder.cc563 attrs_.push_back(std::move(spec)); in Attr()
641 for (StringPiece attr : attrs_) { in Finalize()
/external/tensorflow/tensorflow/python/framework/
Dpython_op_gen.cc296 attrs_.reserve(params_no_default_.size() - op_def_.input_arg_size() + in Code()
299 attrs_.push_back(params_no_default_[i].GetName()); in Code()
302 attrs_.push_back(p.first.GetName()); in Code()
334 for (int i = 0; i < attrs_.size(); ++i) { in Code()
335 const string& attr_name = attrs_[i]; in Code()
525 for (int i = 0; i < attrs_.size(); ++i) { in GetEagerFunctionSetup()
526 const string& attr_name = attrs_[i]; in GetEagerFunctionSetup()
532 const int default_index = i - (attrs_.size() - params_with_default_.size()); in GetEagerFunctionSetup()
Dpython_op_gen_internal.h111 std::vector<string> attrs_; variable
Dpython_op_gen_internal.cc562 attrs_.reserve(params_no_default.size() - op_def_.input_arg_size() + in Code()
565 attrs_.push_back(params_no_default[i].GetName()); in Code()
568 attrs_.push_back(params_with_default[i].GetName()); in Code()
705 for (const string& name : attrs_) { in AddDocStringAttrs()
/external/tensorflow/tensorflow/python/util/
Dutil.cc479 attrs_.reset(PyObject_GetAttrString(cls_.get(), "__attrs_attrs__")); in AttrsValueIterator()
480 if (attrs_) { in AttrsValueIterator()
481 iter_.reset(PyObject_GetIter(attrs_.get())); in AttrsValueIterator()
501 Safe_PyObjectPtr attrs_; member in tensorflow::swig::__anon628453900111::AttrsValueIterator
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_nodes.cc135 attrs_.insert({attr.first, &attr.second}); in TFAttrs()
139 bool count(const string& key) const { return attrs_.count(key); } in count()
142 if (!attrs_.count(key)) { in at()
145 return attrs_.at(key); in at()
153 return attrs_.count(key) ? this->get<T>(key) : default_value; in get()
157 std::map<string, AttrValue const*> attrs_; member in tensorflow::tensorrt::convert::TFAttrs