Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/kernels/
Dexample_parsing_ops.cc40 OP_REQUIRES_OK(ctx, attrs_.Init(ctx)); in ParseExampleOp()
57 std::vector<string> dense_keys_t(attrs_.num_dense); in Compute()
58 std::vector<string> sparse_keys_t(attrs_.num_sparse); in Compute()
61 CHECK_EQ(dense_keys.size(), attrs_.num_dense); in Compute()
62 CHECK_EQ(sparse_keys.size(), attrs_.num_sparse); in Compute()
65 for (int di = 0; di < attrs_.num_dense; ++di) { in Compute()
68 for (int di = 0; di < attrs_.num_sparse; ++di) { in Compute()
88 OP_REQUIRES(ctx, dense_defaults.size() == attrs_.num_dense, in Compute()
91 dense_defaults.size(), " vs. ", attrs_.num_dense)); in Compute()
93 for (int d = 0; d < static_cast<int>(attrs_.num_dense); ++d) { in Compute()
[all …]
/external/pdfium/core/fxcrt/xml/
Dcfx_xmlattributenode.cpp19 return attrs_.find(name) != attrs_.end(); in HasAttribute()
23 auto it = attrs_.find(name); in GetString()
24 return it != attrs_.end() ? it->second : WideString(); in GetString()
29 attrs_[name] = value; in SetString()
33 attrs_.erase(name); in RemoveAttribute()
Dcfx_xmlattributenode.h27 return attrs_; in GetAttributes()
30 attrs_ = attrs; in SetAttributes()
41 std::map<WideString, WideString> attrs_; variable
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dconv_ops.cc50 attrs_ = attrs.ValueOrDie(); in ConvOp()
55 ctx->op_kernel().type_string(), ctx->Input(0), ctx->Input(1), attrs_); in Compile()
61 ConvOpAttrs attrs_; member in tensorflow::__anon1313cb460111::ConvOp
97 attrs_ = attrs.ValueOrDie(); in ConvBackpropInputOp()
108 ctx->Input(1), ctx->Input(2), attrs_); in Compile()
114 ConvOpAttrs attrs_; member in tensorflow::__anon1313cb460111::ConvBackpropInputOp
155 attrs_ = attrs.ValueOrDie(); in ConvBackpropFilterOp()
166 ctx->Input(2), attrs_); in Compile()
172 ConvOpAttrs attrs_; member in tensorflow::__anon1313cb460111::ConvBackpropFilterOp
/external/tensorflow/tensorflow/core/common_runtime/eager/
Deager_operation.h29 attrs_(op), in EagerOperation()
44 tensorflow::AttrBuilder* MutableAttrs() { return &attrs_; } in MutableAttrs()
45 const tensorflow::AttrBuilder& Attrs() const { return attrs_; } in Attrs()
72 tensorflow::AttrBuilder attrs_; variable
Deager_operation.cc31 attrs_.NumInputs(static_cast<int>(inputs_.size())); in AddInput()
36 attrs_.NumInputs(static_cast<int>(inputs_.size())); in ConsumeInput()
/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.h103 const AttrValueMap& attrs() const { return attrs_; } in attrs()
110 attrs_(attrs), in AssociatedFunctionInfo()
116 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/framework/
Dnode_def_util.h133 int size() const { return attrs_->size(); } in size()
167 AttrValueMap::const_iterator begin() const { return attrs_->begin(); } in begin()
168 AttrValueMap::const_iterator end() const { return attrs_->end(); } in end()
172 const AttrValueMap* attrs_; variable
Dnode_def_util.cc45 attrs_ = kEmptyAttrValueMap; in AttrSlice()
49 : ndef_(&node_def), attrs_(&ndef_->attr()) {} in AttrSlice()
51 AttrSlice::AttrSlice(const AttrValueMap* a) : ndef_(nullptr), attrs_(a) {} in AttrSlice()
168 for (const auto& attr : *attrs_) { in Find()
195 for (const auto& attr : *other.attrs_) { in EqualAttrs()
196 auto iter = attrs_->find(attr.first); in EqualAttrs()
197 if (iter == attrs_->end()) return false; in EqualAttrs()
Dop_def_builder.h165 std::vector<string> attrs_; variable
Dop_def_builder.cc561 attrs_.push_back(std::move(spec)); in Attr()
640 for (StringPiece attr : attrs_) { in Finalize()
/external/tensorflow/tensorflow/python/framework/
Dpython_op_gen.cc294 attrs_.reserve(params_no_default_.size() - op_def_.input_arg_size() + in Code()
297 attrs_.push_back(params_no_default_[i].GetName()); in Code()
300 attrs_.push_back(p.first.GetName()); in Code()
324 for (int i = 0; i < attrs_.size(); ++i) { in Code()
325 const string& attr_name = attrs_[i]; in Code()
475 for (int i = 0; i < attrs_.size(); ++i) { in GetEagerFunctionSetup()
476 const string& attr_name = attrs_[i]; in GetEagerFunctionSetup()
482 const int default_index = i - (attrs_.size() - params_with_default_.size()); in GetEagerFunctionSetup()
Dpython_op_gen_internal.h109 std::vector<string> attrs_; variable
Dpython_op_gen_internal.cc543 attrs_.reserve(params_no_default.size() - op_def_.input_arg_size() + in Code()
546 attrs_.push_back(params_no_default[i].GetName()); in Code()
549 attrs_.push_back(params_with_default[i].GetName()); in Code()
686 for (const string& name : attrs_) { in AddDocStringAttrs()
/external/tensorflow/tensorflow/python/util/
Dutil.cc472 attrs_.reset(PyObject_GetAttrString(cls_.get(), "__attrs_attrs__")); in AttrsValueIterator()
473 if (attrs_) { in AttrsValueIterator()
474 iter_.reset(PyObject_GetIter(attrs_.get())); in AttrsValueIterator()
494 Safe_PyObjectPtr attrs_; member in tensorflow::swig::__anonee0a9dce0111::AttrsValueIterator
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_nodes.cc123 attrs_.insert({attr.first, &attr.second}); in TFAttrs()
127 bool count(const string& key) const { return attrs_.count(key); } in count()
130 if (!attrs_.count(key)) { in at()
133 return attrs_.at(key); in at()
141 return attrs_.count(key) ? this->get<T>(key) : default_value; in get()
146 for (const auto& attr_item : attrs_) { in GetAllAttrKeys()
154 AttrMap attrs_; member in tensorflow::tensorrt::convert::TFAttrs