/external/grpc-grpc/src/cpp/common/ |
D | channel_filter.h | 111 explicit TransportOp(grpc_transport_op* op) : op_(op) {} in TransportOp() 113 grpc_transport_op* op() const { return op_; } in op() 117 return op_->disconnect_with_error; in disconnect_with_error() 119 bool send_goaway() const { return op_->goaway_error != GRPC_ERROR_NONE; } in send_goaway() 124 grpc_transport_op* op_; // Not owned. 134 : op_(op), in TransportStreamOpBatch() 152 grpc_transport_stream_op_batch* op() const { return op_; } in op() 154 grpc_closure* on_complete() const { return op_->on_complete; } in on_complete() 155 void set_on_complete(grpc_closure* closure) { op_->on_complete = closure; } in set_on_complete() 158 return op_->send_initial_metadata ? &send_initial_metadata_ : nullptr; in send_initial_metadata() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/cpp/common/ |
D | channel_filter.h | 111 explicit TransportOp(grpc_transport_op* op) : op_(op) {} in TransportOp() 113 grpc_transport_op* op() const { return op_; } in op() 117 return op_->disconnect_with_error; in disconnect_with_error() 119 bool send_goaway() const { return op_->goaway_error != GRPC_ERROR_NONE; } in send_goaway() 124 grpc_transport_op* op_; // Not owned. 134 : op_(op), in TransportStreamOpBatch() 152 grpc_transport_stream_op_batch* op() const { return op_; } in op() 154 grpc_closure* on_complete() const { return op_->on_complete; } in on_complete() 155 void set_on_complete(grpc_closure* closure) { op_->on_complete = closure; } in set_on_complete() 158 return op_->send_initial_metadata ? &send_initial_metadata_ : nullptr; in send_initial_metadata() [all …]
|
/external/angle/third_party/abseil-cpp/absl/flags/internal/ |
D | flag.cc | 102 flags_internal::Delete(flag_impl_.op_, value_.heap_allocated); in ~FlagState() 160 std::memcpy(buf.data(), &default_value_, Sizeof(op_)); in Init() 187 FlagFastTypeId lhs_type_id = flags_internal::FastTypeId(op_); in AssertValidType() 196 flags_internal::RuntimeTypeId(op_); in AssertValidType() 214 res = flags_internal::Clone(op_, default_value_.dynamic_value); in MakeInitValue() 217 res = flags_internal::Alloc(op_); in MakeInitValue() 221 res = flags_internal::Clone(op_, &default_value_); in MakeInitValue() 224 return {res, DynValueDeleter{op_}}; in MakeInitValue() 230 Copy(op_, src, AlignedBufferValue()); in StoreValue() 235 std::memcpy(&one_word_val, src, Sizeof(op_)); in StoreValue() [all …]
|
/external/python/pybind11/include/pybind11/ |
D | operators.h | 53 template <op_id id, op_type ot, typename L, typename R> struct op_ { struct 81 template <typename B, typename L, typename R> struct op_impl<op_##id, op_l, B, L, R> { \ argument 86 template <typename B, typename L, typename R> struct op_impl<op_##id, op_r, B, L, R> { \ 91 inline op_<op_##id, op_l, self_t, self_t> op(const self_t &, const self_t &) { \ 92 return op_<op_##id, op_l, self_t, self_t>(); \ 94 template <typename T> op_<op_##id, op_l, self_t, T> op(const self_t &, const T &) { \ 95 return op_<op_##id, op_l, self_t, T>(); \ 97 template <typename T> op_<op_##id, op_r, T, self_t> op(const T &, const self_t &) { \ 98 return op_<op_##id, op_r, T, self_t>(); \ 102 template <typename B, typename L, typename R> struct op_impl<op_##id, op_l, B, L, R> { \ [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | ragged_tensor_to_tensor_op_test.cc | 510 std::unique_ptr<ShapeInferenceTestOp> op_; member in tensorflow::__anon7d8f54e80111::RaggedTensorToTensorOpUnknownShapeTest 513 op_ = absl::make_unique<ShapeInferenceTestOp>("RaggedTensorToTensor"); in SetAttributes() 515 &((*op_->node_def.mutable_attr())["row_partition_types"])); in SetAttributes() 516 (*op_->node_def.mutable_attr())["num_row_partition_tensors"].set_i( in SetAttributes() 524 INFER_OK(*op_, "?;?;?;?;?", "?"); in TEST_F() 525 INFER_OK(*op_, "?;[6];[];[];[6]", "[?,?]"); in TEST_F() 526 INFER_OK(*op_, "?;[6];?;[];[6]", "[?,?]"); in TEST_F() 527 INFER_OK(*op_, "?;?;[];[];[6]", "?"); in TEST_F() 528 INFER_OK(*op_, "?;[6];?;[];[6]", "[?,?]"); in TEST_F() 529 INFER_OK(*op_, "?;[6,2];?;[];[6]", "[?,?,2]"); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/c/eager/ |
D | gradients.cc | 301 Status Reset(AbstractOperation* op_, const char* op, in Reset() argument 305 return op_->Reset(op, raw_device_name); in Reset() 307 Status AddInput(AbstractOperation* op_, AbstractTensorHandle* input, in AddInput() argument 309 TF_RETURN_IF_ERROR(op_->AddInput(input)); in AddInput() 313 Status AddInputList(AbstractOperation* op_, in AddInputList() argument 316 TF_RETURN_IF_ERROR(op_->AddInputList(inputs)); in AddInputList() 323 Status SetAttrString(AbstractOperation* op_, const char* attr_name, in SetAttrString() argument 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 332 return op_->SetAttrInt(attr_name, value); in SetAttrInt() [all …]
|
D | c_api_unified_experimental_graph.cc | 100 if (op_) { in Reset() 110 if (op_) { in SetOpName() 121 op_.reset(new TF_OperationDescription(g_, op_type_.c_str(), in SetOpName() 140 TF_AddInput(op_.get(), t->output_); in AddInput() 153 TF_AddInputList(op_.get(), tf_outputs.data(), tf_outputs.size()); in AddInputList() 158 auto* tf_opdesc = op_.release(); in Execute() 176 op_->node_builder.Attr(attr_name, s); in SetAttrString() 182 op_->node_builder.Attr(attr_name, static_cast<tensorflow::int64>(value)); in SetAttrInt() 186 op_->node_builder.Attr(attr_name, value); in SetAttrFloat() 190 op_->node_builder.Attr(attr_name, value); in SetAttrBool() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/flags/internal/ |
D | flag.cc | 101 flags_internal::Delete(flag_impl_.op_, value_.heap_allocated); in ~FlagState() 161 std::memcpy(buf.data(), &default_value_, Sizeof(op_)); in Init() 190 FlagFastTypeId lhs_type_id = flags_internal::FastTypeId(op_); in AssertValidType() 199 flags_internal::RuntimeTypeId(op_); in AssertValidType() 217 res = flags_internal::Clone(op_, default_value_.dynamic_value); in MakeInitValue() 220 res = flags_internal::Alloc(op_); in MakeInitValue() 224 res = flags_internal::Clone(op_, &default_value_); in MakeInitValue() 227 return {res, DynValueDeleter{op_}}; in MakeInitValue() 233 Copy(op_, src, AlignedBufferValue()); in StoreValue() 237 std::memcpy(&one_word_val, src, Sizeof(op_)); in StoreValue() [all …]
|
/external/openscreen/third_party/abseil/src/absl/flags/internal/ |
D | flag.cc | 101 flags_internal::Delete(flag_impl_.op_, value_.heap_allocated); in ~FlagState() 161 std::memcpy(buf.data(), &default_value_, Sizeof(op_)); in Init() 190 FlagFastTypeId lhs_type_id = flags_internal::FastTypeId(op_); in AssertValidType() 199 flags_internal::RuntimeTypeId(op_); in AssertValidType() 217 res = flags_internal::Clone(op_, default_value_.dynamic_value); in MakeInitValue() 220 res = flags_internal::Alloc(op_); in MakeInitValue() 224 res = flags_internal::Clone(op_, &default_value_); in MakeInitValue() 227 return {res, DynValueDeleter{op_}}; in MakeInitValue() 233 Copy(op_, src, AlignedBufferValue()); in StoreValue() 237 std::memcpy(&one_word_val, src, Sizeof(op_)); in StoreValue() [all …]
|
/external/libtextclassifier/abseil-cpp/absl/flags/internal/ |
D | flag.cc | 101 flags_internal::Delete(flag_impl_.op_, value_.heap_allocated); in ~FlagState() 161 std::memcpy(buf.data(), &default_value_, Sizeof(op_)); in Init() 190 FlagFastTypeId lhs_type_id = flags_internal::FastTypeId(op_); in AssertValidType() 199 flags_internal::RuntimeTypeId(op_); in AssertValidType() 217 res = flags_internal::Clone(op_, default_value_.dynamic_value); in MakeInitValue() 220 res = flags_internal::Alloc(op_); in MakeInitValue() 224 res = flags_internal::Clone(op_, &default_value_); in MakeInitValue() 227 return {res, DynValueDeleter{op_}}; in MakeInitValue() 233 Copy(op_, src, AlignedBufferValue()); in StoreValue() 237 std::memcpy(&one_word_val, src, Sizeof(op_)); in StoreValue() [all …]
|
/external/abseil-cpp/absl/flags/internal/ |
D | flag.cc | 97 FlagStaticTypeId this_type_id = flags_internal::StaticTypeId(op_); in AssertValidType() 124 res = flags_internal::Clone(op_, default_value_.dynamic_value); in MakeInitValue() 128 return {res, DynValueDeleter{op_}}; in MakeInitValue() 132 flags_internal::Copy(op_, src, value_.dynamic); in StoreValue() 164 return flags_internal::Unparse(op_, obj.get()); in DefaultValue() 170 return flags_internal::Unparse(op_, value_.dynamic); in CurrentValue() 236 if (!flags_internal::Parse(op_, value, tentative_value.get(), &parse_err)) { in TryParse() 249 flags_internal::CopyConstruct(op_, value_.dynamic, dst); in Read() 253 size_t data_size = flags_internal::Sizeof(op_); in StoreAtomic() 272 if (ShouldValidateFlagValue(flags_internal::StaticTypeId(op_))) { in Write() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/flags/internal/ |
D | flag.cc | 97 FlagStaticTypeId this_type_id = flags_internal::StaticTypeId(op_); in AssertValidType() 124 res = flags_internal::Clone(op_, default_value_.dynamic_value); in MakeInitValue() 128 return {res, DynValueDeleter{op_}}; in MakeInitValue() 132 flags_internal::Copy(op_, src, value_.dynamic); in StoreValue() 164 return flags_internal::Unparse(op_, obj.get()); in DefaultValue() 170 return flags_internal::Unparse(op_, value_.dynamic); in CurrentValue() 236 if (!flags_internal::Parse(op_, value, tentative_value.get(), &parse_err)) { in TryParse() 249 flags_internal::CopyConstruct(op_, value_.dynamic, dst); in Read() 253 size_t data_size = flags_internal::Sizeof(op_); in StoreAtomic() 272 if (ShouldValidateFlagValue(flags_internal::StaticTypeId(op_))) { in Write() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/ |
D | legalize_tf_with_tf2xla.cc | 311 : op_(op), in Tf2XlaRewriter() 337 Operation* op_; member in mlir::mhlo::__anon94f199800111::Tf2XlaRewriter 382 return emitError(op_->getLoc()) in PrepareParams() 389 op_->getParentOfType<mlir::ModuleOp>()); in PrepareParams() 391 return emitError(op_->getLoc()) << version_or.status().ToString(); in PrepareParams() 405 for (Type ty : op_->getOperandTypes()) { in LegalizeOp() 408 return op_->emitRemark() in LegalizeOp() 413 for (const auto& attr : op_->getAttrs()) { in LegalizeOp() 415 return op_->emitRemark() in LegalizeOp() 421 op_, name_mapper_.GetUniqueName(op_), /*ignore_unregistered_attrs=*/true); in LegalizeOp() [all …]
|
/external/tensorflow/tensorflow/compiler/tf2xla/ |
D | resource_util.h | 40 std::string op_; variable 48 op_(std::move(op)) {} in NodeInfo() 51 return absl::StrJoin({function_name_.value_or(""), node_name_, op_}, ":"); in DebugString() 56 op_ == o.op_; 61 return H::combine(std::move(h), o.function_name_, o.node_name_, o.op_); in AbslHashValue()
|
D | xla_expression_test.cc | 41 op_ = xla::ConstantR0<int32>(builder_.get(), 7); in SetUp() 46 DT_INT32, TensorShape({17, 3}), op_, /*tensor_array_size=*/-1, in SetUp() 54 xla::XlaOp op_; member in tensorflow::__anonffa157ed0111::XlaExpressionTest 65 XlaExpression::XlaOp(op_, DT_INT32).kind()); in TEST_F() 74 EXPECT_EQ("xla_op", XlaExpression::XlaOp(op_, DT_INT32).HumanString()); in TEST_F() 80 XlaExpression::XlaOp(op_, DT_INT32).AsXlaOp(builder_.get()); in TEST_F() 81 EXPECT_TRUE(op_.IsIdenticalTo(op_as_op)); in TEST_F() 102 XlaExpression::XlaOp(op_, DT_INT32).GetShape()); in TEST_F() 120 XlaExpression::XlaOp(op_, DT_INT32).ResolveConstant(client_)); in TEST_F()
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/ |
D | regexp.h | 321 RegexpOp op() { return static_cast<RegexpOp>(op_); } in op() 334 int min() { DCHECK_EQ(op_, kRegexpRepeat); return min_; } in min() 335 int max() { DCHECK_EQ(op_, kRegexpRepeat); return max_; } in max() 336 Rune rune() { DCHECK_EQ(op_, kRegexpLiteral); return rune_; } in rune() 337 CharClass* cc() { DCHECK_EQ(op_, kRegexpCharClass); return cc_; } in cc() 338 int cap() { DCHECK_EQ(op_, kRegexpCapture); return cap_; } in cap() 339 const std::string* name() { DCHECK_EQ(op_, kRegexpCapture); return name_; } in name() 340 Rune* runes() { DCHECK_EQ(op_, kRegexpLiteralString); return runes_; } in runes() 341 int nrunes() { DCHECK_EQ(op_, kRegexpLiteralString); return nrunes_; } in nrunes() 342 int match_id() { DCHECK_EQ(op_, kRegexpHaveMatch); return match_id_; } in match_id() [all …]
|
D | prefilter.h | 39 Op op() { return op_; } in op() 46 DCHECK(op_ == AND || op_ == OR); in subs() 87 Op op_; variable
|
D | prefilter.cc | 29 op_ = op; in Prefilter() 31 if (op_ == AND || op_ == OR) in Prefilter() 47 if (op_ != AND && op_ != OR) { in Simplify() 53 if (op_ == AND) in Simplify() 54 op_ = ALL; // AND of nothing is true in Simplify() 56 op_ = NONE; // OR of nothing is false in Simplify() 664 switch (op_) { in DebugString() 666 LOG(DFATAL) << "Bad op in Prefilter::DebugString: " << op_; in DebugString() 667 return StringPrintf("op%d", op_); in DebugString()
|
D | regexp.cc | 31 : op_(static_cast<uint8_t>(op)), in Regexp() 50 switch (op_) { in ~Regexp() 172 DCHECK(op_ == kRegexpLiteralString); in AddRuneToString() 688 if (op_ != kRegexpConcat) in RequiredPrefix() 691 while (i < nsub_ && sub()[i]->op_ == kRegexpBeginText) in RequiredPrefix() 696 if (re->op_ != kRegexpLiteral && in RequiredPrefix() 697 re->op_ != kRegexpLiteralString) in RequiredPrefix() 709 Rune* runes = re->op_ == kRegexpLiteral ? &re->rune_ : re->runes_; in RequiredPrefix() 710 int nrunes = re->op_ == kRegexpLiteral ? 1 : re->nrunes_; in RequiredPrefix() 725 Regexp* re = op_ == kRegexpConcat && nsub_ > 0 ? sub()[0] : this; in RequiredPrefixForAccel() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | resource_op_lifting.cc | 239 explicit RegionResourceHoister(Operation* op) : op_(op) {} in RegionResourceHoister() 260 llvm::for_each(op_->getRegions(), [&](Region& region) { in ReplaceResourceLoads() 296 Operation* op_; member in mlir::__anon1f2fad2f0111::RegionResourceHoister 350 for (Region& region : op_->getRegions()) { in Analyze() 358 if (FuncOp func = dyn_cast<FuncOp>(op_)) { in Analyze() 365 getUsedValuesDefinedAbove(op_->getRegions(), all_resources); in Analyze() 369 num_new_results_ = op_->getNumResults(); in Analyze() 374 llvm::BitVector written_regions(op_->getNumRegions()); in Analyze() 385 if (user->getParentRegion()->getParentOp() != op_) continue; in Analyze() 421 info.is_written_all = written_regions.count() == op_->getNumRegions(); in Analyze() [all …]
|
/external/tensorflow/tensorflow/core/grappler/graph_analyzer/ |
D | gen_node.cc | 28 GenNode::GenNode(const NodeDef* node) : node_(node), op_(nullptr) {} in GenNode() 52 Status st = OpRegistry::Global()->LookUpOpDef(opcode(), &op_); in ParseInputs() 62 int n_named_inputs = op_->input_arg_size(); in ParseInputs() 65 for (const auto& inarg : op_->input_arg()) { in ParseInputs() 113 name(), other_name, this_position, op_->name(), n_named_inputs)); in ParseInputs()
|
/external/tensorflow/tensorflow/cc/framework/ |
D | ops.h | 68 explicit Output(Node* n) : op_(n) {} in Output() 69 Output(Node* n, int32 index) : op_(n), index_(index) {} in Output() 70 Output(const Operation& op, int32 index) : op_(op), index_(index) {} in Output() 72 Operation op() const { return op_; } in op() 75 DataType type() const { return op_.output_type(index_); } in type() 78 return op_ == other.op_ && index_ == other.index_; 81 uint64 hash() const { return op_.hash(index_); } in hash() 84 Operation op_ = Operation(nullptr);
|
/external/tensorflow/tensorflow/lite/delegates/flex/ |
D | kernel.cc | 192 if (op_) ClearEagerInputs(); in ~OpNode() 215 tensorflow::EagerOperation* op() { return op_.get(); } in op() 249 op_.reset(new tensorflow::EagerOperation(eager_context)); in BuildEagerOp() 250 TF_RETURN_IF_ERROR(op_->Reset(name_.c_str(), nullptr, false, nullptr)); in BuildEagerOp() 251 if (op_->is_function()) { in BuildEagerOp() 252 op_.reset(); in BuildEagerOp() 259 op_->MutableAttrs()->NumInputs(inputs_.Size()); in BuildEagerOp() 261 op_->MutableAttrs()->Set(attr.first, attr.second); in BuildEagerOp() 266 op_->MutableAttrs()->CacheKey(op_->DeviceName()); in BuildEagerOp() 271 void ClearEagerInputs() { op_->Clear(); } in ClearEagerInputs() [all …]
|
/external/tensorflow/tensorflow/c/eager/parallel_device/ |
D | parallel_device_lib.cc | 74 op_(nullptr), in DeviceThread() 141 mutable OpPtr op_ TF_GUARDED_BY(execution_mutex_); 227 if (op_ == nullptr) { in Execute() 229 op_.reset(TFE_NewOp(context, operation_name, status)); in Execute() 231 TFE_OpSetDevice(op_.get(), device_.c_str(), status); in Execute() 234 TFE_OpReset(op_.get(), operation_name, device_.c_str(), status); in Execute() 237 TFE_OpAddAttrs(op_.get(), attributes); in Execute() 239 TFE_OpAddInput(op_.get(), inputs[input_index], status); in Execute() 244 TFE_OpSetCancellationManager(op_.get(), wrap(cancellation_manager_), status); in Execute() 246 TFE_Execute(op_.get(), unwrapped_results.data(), &real_num_outputs, status); in Execute()
|
/external/tensorflow/tensorflow/compiler/jit/ |
D | node_matchers.h | 90 const absl::optional<string>& op() const { return op_; } in op() 112 op_ = std::move(op); in set_op() 123 op_ = "Const"; in set_constant_value() 148 absl::optional<string> op_; variable
|