/external/tensorflow/tensorflow/cc/gradients/ |
D | array_grad_test.cc | 33 ArrayGradTest() : scope_(Scope::NewRootScope()) {} in ArrayGradTest() 37 TF_ASSERT_OK(scope_.status()); in RunTest() 40 scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error))); in RunTest() 46 TF_ASSERT_OK(scope_.status()); in RunTest() 49 scope_, xs, x_shapes, ys, y_shapes, &max_error))); in RunTest() 53 Scope scope_; member in tensorflow::__anon7f746cf00111::ArrayGradTest 59 xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape))); in TEST_F() 60 xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape))); in TEST_F() 61 auto y = Stack(scope_, xs, Stack::Axis(0)); in TEST_F() 69 xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape))); in TEST_F() [all …]
|
D | math_grad_test.cc | 59 CWiseUnaryGradTest() : scope_(Scope::NewRootScope().WithDevice("/cpu:0")) {} in CWiseUnaryGradTest() 99 TF_ASSERT_OK(scope_.status()); in TestCWiseGrad() 102 auto x = Placeholder(scope_, x_type, Placeholder::Shape(shape)); in TestCWiseGrad() 113 y = Abs(scope_, x); in TestCWiseGrad() 116 y = Neg(scope_, x); in TestCWiseGrad() 119 y = Reciprocal(scope_, x); in TestCWiseGrad() 122 y = Square(scope_, x); in TestCWiseGrad() 125 y = Sqrt(scope_, x); in TestCWiseGrad() 128 y = Rsqrt(scope_, x); in TestCWiseGrad() 131 y = Exp(scope_, x); in TestCWiseGrad() [all …]
|
D | nn_grad_test.cc | 52 NNGradTest() : scope_(Scope::NewRootScope()) {} in NNGradTest() 58 scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error))); in RunTest() 66 scope_, x, x_init_value, y, y_shape, &max_error))); in RunTest() 72 TF_ASSERT_OK(scope_.status()); in RunTest() 75 scope_, xs, x_shapes, ys, y_shapes, &max_error))); in RunTest() 105 Scope scope_; member in tensorflow::__anon163a904d0111::NNGradTest 110 auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)); in TEST_F() 111 auto y = Softmax(scope_, x); in TEST_F() 119 auto logits = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(logits_shape)); in TEST_F() 120 auto labels = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(logits_shape)); in TEST_F() [all …]
|
D | data_flow_grad_test.cc | 35 DataFlowGradTest() : scope_(Scope::NewRootScope()) {} in DataFlowGradTest() 39 TF_ASSERT_OK(scope_.status()); in RunTest() 42 scope_, xs, x_shapes, ys, y_shapes, &max_error))); in RunTest() 46 Scope scope_; member in tensorflow::__anon5949f7820111::DataFlowGradTest 51 auto data = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(data_shape)); in TEST_F() 52 auto partitions = Const(scope_, {{2, 1, 0}, {1, 2, 0}}); in TEST_F() 53 auto y = DynamicPartition(scope_, data, partitions, 3); in TEST_F() 62 std::vector<Output> indices = {Const(scope_, 2), Const(scope_, {1, 0})}; in TEST_F() 64 Placeholder(scope_, DT_FLOAT, Placeholder::Shape(d1_shape)), in TEST_F() 65 Placeholder(scope_, DT_FLOAT, Placeholder::Shape(d2_shape))}; in TEST_F() [all …]
|
D | image_grad_test.cc | 38 ImageGradTest() : scope_(Scope::NewRootScope()) {} in ImageGradTest() 57 *x = Const<T>(scope_, x_data); in MakeOp() 61 scope_, *x, y_shape, in MakeOp() 65 *y = ResizeBilinear(scope_, *x, y_shape, in MakeOp() 70 *y = ResizeBicubic(scope_, *x, y_shape, in MakeOp() 87 ClientSession session(scope_); in TestResizedShapeForType() 121 scope_, x, x_data, y, {1, 2, 3, 1}, &max_error))); in TestResizeToSmallerAndAlign() 136 scope_, x, x_data, y, {1, 4, 6, 1}, &max_error))); in TestResizeToLargerAndAlign() 156 Scope scope_; member in tensorflow::__anon7504a1f40111::ImageGradTest 185 ScaleAndTranslateGradTest() : scope_(Scope::NewRootScope()) {} in ScaleAndTranslateGradTest() [all …]
|
D | manip_grad_test.cc | 29 ManipGradTest() : scope_(Scope::NewRootScope()) {} in ManipGradTest() 33 TF_ASSERT_OK(scope_.status()); in RunTest() 36 scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error))); in RunTest() 40 Scope scope_; member in tensorflow::__anonbc2ad4460111::ManipGradTest 45 auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)); in TEST_F() 46 auto y = Roll(scope_, x, {2, 1}, {0, 1}); in TEST_F()
|
/external/tensorflow/tensorflow/cc/framework/ |
D | gradients_test.cc | 547 StopGradientSingleOutputMultiEdgeTest() : scope_(Scope::NewRootScope()) {} in StopGradientSingleOutputMultiEdgeTest() 553 auto x = Const(scope_, {{1, 0}, {0, 1}}); in CheckGrad() 554 auto y = Const(scope_, {{1, 0}, {0, 1}}); in CheckGrad() 555 auto z = MatMul(scope_, x, y); in CheckGrad() 560 ? StopGradient(scope_, (Identity(scope_, z))).output in CheckGrad() 561 : Identity(scope_, z).output; in CheckGrad() 563 ? StopGradient(scope_, (Identity(scope_, z))).output in CheckGrad() 564 : Identity(scope_, z).output; in CheckGrad() 566 ? StopGradient(scope_, (Identity(scope_, z))).output in CheckGrad() 567 : Identity(scope_, z).output; in CheckGrad() [all …]
|
D | while_gradients_test.cc | 32 WhileGradientsTest() : scope_(Scope::NewRootScope()) {} in WhileGradientsTest() 36 inputs_.push_back(ops::Placeholder(scope_, dtype)); in Init() 44 TF_ASSERT_OK(ops::BuildWhileLoop(scope_, *inputs, cond, body, "test_loop", in CreateLoop() 50 AddSymbolicGradients(scope_, outputs_, inputs_, &grad_outputs_)); in CreateBackprop() 57 Run<T>(ClientSession(scope_), input_values, expected_grad_values); in Run() 85 Scope scope_; member in tensorflow::__anon97a6b1da0111::WhileGradientsTest 163 std::vector<Output> loop_inputs = {ops::Multiply(scope_, inputs_[0], 2.0), in TEST_F() 164 ops::Multiply(scope_, inputs_[1], 2.0)}; in TEST_F() 182 outputs_[0] = ops::Neg(scope_, outputs_[0]); in TEST_F() 192 scope_ = scope_.WithDevice("/cpu:0"); in TEST_F() [all …]
|
D | gradients.cc | 102 const Scope& scope_; member in tensorflow::__anonc8091ec30111::SymbolicGradientBuilder 145 : scope_(scope), in SymbolicGradientBuilder() 169 std::vector<bool> reachable_nodes(scope_.graph()->num_node_ids(), false); in GetReachableNodes() 284 pending_.resize(scope_.graph()->num_node_ids(), 0); in Initialize() 368 *grad = ops::AddN(scope_, grads_to_keep); in SumGradients() 386 TF_RETURN_IF_ERROR(grad_fn(scope_, op, grad_inputs, grad_outputs)); in CallGradFunction() 387 TF_RETURN_IF_ERROR(scope_.status()); in CallGradFunction() 419 scope_.NewSubScope(strings::StrCat(while_ctx->frame_name(), "_grad")); in ProcessWhileLoop() 511 dy[dy_index] = ops::ZerosLike(scope_, Output(n, dy_index)); in AddGradients()
|
/external/libchrome/base/trace_event/ |
D | blame_context.cc | 23 scope_(scope), in BlameContext() 37 TRACE_EVENT_PHASE_DELETE_OBJECT, category_group_enabled_, type_, scope_, in ~BlameContext() 45 category_group_enabled_, name_, scope_, id_, in Enter() 53 category_group_enabled_, name_, scope_, id_, in Leave() 72 category_group_enabled_, type_, scope_, id_, in TakeSnapshot() 99 TRACE_EVENT_PHASE_CREATE_OBJECT, category_group_enabled_, type_, scope_, in Initialize()
|
D | trace_event_impl.cc | 46 scope_(trace_event_internal::kGlobalScope), in TraceEvent() 64 scope_ = other->scope_; in MoveFrom() 103 scope_ = scope; in Initialize() 163 CopyTraceEventParameter(&ptr, &scope_, end); in Initialize() 366 if (scope_ != trace_event_internal::kGlobalScope) in AppendAsJSON() 367 StringAppendF(out, ",\"scope\":\"%s\"", scope_); in AppendAsJSON() 458 if (scope_ != kGlobalScope) in AsConvertableToTraceFormat() 459 value->SetString("scope", scope_); in AsConvertableToTraceFormat()
|
D | blame_context.h | 100 const char* scope() const { return scope_; } in scope() 121 const char* scope_; variable
|
D | trace_event_impl.h | 129 const char* scope() const { return scope_; } in scope() 164 const char* scope_; variable
|
D | trace_event.h | 552 : scope_(scope), raw_id_(raw_id) {} in WithScope() 554 : scope_(scope), raw_id_(local_id.raw_id()) { in WithScope() 558 : scope_(scope), raw_id_(global_id.raw_id()) { in WithScope() 564 : scope_(scope), has_prefix_(true), prefix_(prefix), raw_id_(raw_id) {} in WithScope() 566 : scope_(scope), in WithScope() 573 const char* scope() const { return scope_; } in scope() 579 const char* scope_ = nullptr; 665 : scope_(scoped_id.scope()), in TraceID() 672 const char* scope() const { return scope_; } in scope() 681 const char* scope_ = nullptr;
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_extension_lite.cc | 49 scope_ = in ImmutableExtensionLiteGenerator() 52 scope_ = name_resolver_->GetImmutableClassName(descriptor_->file()); in ImmutableExtensionLiteGenerator() 61 InitTemplateVars(descriptor_, scope_, kUseImmutableNames, name_resolver_, in Generate() 107 printer->Print("registry.add($scope$.$name$);\n", "scope", scope_, "name", in GenerateRegistrationCode()
|
D | java_extension.cc | 54 scope_ = in ImmutableExtensionGenerator() 57 scope_ = name_resolver_->GetImmutableClassName(descriptor_->file()); in ImmutableExtensionGenerator() 116 InitTemplateVars(descriptor_, scope_, kUseImmutableNames, name_resolver_, in Generate() 165 printer->Print("registry.add($scope$.$name$);\n", "scope", scope_, "name", in GenerateRegistrationCode()
|
/external/bcc/src/cc/frontends/b/ |
D | parser.yy | 133 { parser.root_node_ = $3; $3->scope_ = $2; } 187 $1->block_->scope_ = $3; 248 { $$ = parser.state_add($3, $2, $5); $5->scope_ = $4; 252 { $$ = parser.state_add($5, $2, new IdentExprNode(""), $7); $7->scope_ = $6; 256 { $$ = parser.state_add($5, $2, $4, $7); $7->scope_ = $6; 263 { $$ = parser.func_add($1, $3, $2, $6, $8); $8->scope_ = $4; 277 { $$ = parser.result_add($1, $2, $5, $7); delete $5; $7->scope_ = $3; 281 { $$ = parser.result_add($1, $2, new FormalList, $6); $6->scope_ = $3; 285 { $$ = parser.result_add($1, $2, $5, $7); delete $5; $7->scope_ = $3; 374 $4->scope_ = $3; [all …]
|
D | node.h | 337 : stmts_(move(stmts)), scope_(NULL) {} in DECLARE() 338 ~BlockStmtNode() { delete scope_; } in ~BlockStmtNode() local 340 Scopes::VarScope* scope_; variable 507 Scopes::StateScope* scope_; member 508 Sub(decltype(id_) id, decltype(block_) block, decltype(parser_) parser, decltype(scope_) scope) in Sub() 509 : id_(move(id)), block_(move(block)), parser_(move(parser)), scope_(scope) {} in Sub() 510 ~Sub() { delete scope_; } in ~Sub() local 511 Sub(Sub&& other) : scope_(NULL) { in Sub() 521 std::swap(scope_, other.scope_); 612 Scopes::StateScope* scope_; variable [all …]
|
/external/tensorflow/tensorflow/cc/ops/ |
D | while_loop_test.cc | 30 WhileLoopTest() : scope_(Scope::NewRootScope()) {} in WhileLoopTest() 34 inputs_.push_back(ops::Placeholder(scope_, dtype)); in Init() 43 ops::BuildWhileLoop(scope_, inputs_, cond, body, kFrameName, &outputs_); in CreateLoop() 51 ClientSession session(scope_); in Run() 70 Scope scope_; member in tensorflow::__anon7e249d170111::WhileLoopTest
|
/external/llvm-project/flang/lib/Semantics/ |
D | type.cpp | 28 CHECK(!scope_); in set_scope() 33 scope_ = &scope; in ReplaceScope() 194 : context_{context}, scope_{scope} {} in InstantiateHelper() 211 Scope &scope_; member in Fortran::semantics::InstantiateHelper 230 scope_ = &typeScope; in Instantiate() 312 auto pair{scope_.try_emplace( in InstantiateComponent() 360 return &FindOrInstantiateDerivedType(scope_, in InstantiateType() 396 return scope_.MakeNumericType(intrinsic.category(), KindExpr{kind}); in InstantiateIntrinsicType() 398 return scope_.MakeLogicalType(KindExpr{kind}); in InstantiateIntrinsicType() 400 return scope_.MakeCharacterType( in InstantiateIntrinsicType() [all …]
|
D | symbol.cpp | 72 return isSubmodule_ && scope_ ? &scope_->parent() : nullptr; in parent() 75 return isSubmodule_ && scope_ ? FindModuleContaining(*scope_) : nullptr; in ancestor() 78 CHECK(!scope_); in set_scope() 81 scope_ = scope; in set_scope() 560 if (const Scope * localScope{scope ? scope : scope_}) { in GetParentComponent()
|
D | program-tree.h | 75 Scope *scope() const { return scope_; } in scope() 97 Scope *scope_{nullptr};
|
/external/perfetto/src/tracing/ |
D | track_event_legacy.cc | 65 if (scope_) in Write() 66 event->set_id_scope(scope_); in Write()
|
/external/llvm-project/flang/lib/Evaluate/ |
D | check-expression.cpp | 382 : Base{*this}, scope_{s}, context_{context} {} in CheckSpecificationExprHelper() 395 } else if (scope_.IsDerivedType() && in operator ()() 420 for (const semantics::Scope *s{&scope_}; !s->IsGlobal();) { in operator ()() 441 if (scope_.IsDerivedType() && !IsConstantExpr(inq) && in operator ()() 459 if (scope_.IsDerivedType()) { // C750, C754 in operator ()() 467 if (scope_.IsDerivedType()) { // C750, C754 in operator ()() 496 const semantics::Scope &scope_; member in Fortran::evaluate::CheckSpecificationExprHelper
|
/external/libchrome/components/policy/core/common/ |
D | config_dir_policy_loader.cc | 70 scope_(scope) {} in ConfigDirPolicyLoader() 175 policy_map.LoadFrom(dictionary_value, level, scope_, in LoadFromPath() 226 policy.LoadFrom(policy_dictionary, level, scope_, POLICY_SOURCE_PLATFORM); in Merge3rdPartyPolicy()
|