/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::__anon207ae5c90111::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() 97 TF_ASSERT_OK(scope_.status()); in TestCWiseGrad() 100 auto x = Placeholder(scope_, x_type, Placeholder::Shape(shape)); in TestCWiseGrad() 111 y = Abs(scope_, x); in TestCWiseGrad() 114 y = Neg(scope_, x); in TestCWiseGrad() 117 y = Reciprocal(scope_, x); in TestCWiseGrad() 120 y = Square(scope_, x); in TestCWiseGrad() 123 y = Sqrt(scope_, x); in TestCWiseGrad() 126 y = Rsqrt(scope_, x); in TestCWiseGrad() 129 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::__anon455b0fc60111::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::__anon982334db0111::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::__anon160b1acd0111::ImageGradTest 185 ScaleAndTranslateGradTest() : scope_(Scope::NewRootScope()) {} in ScaleAndTranslateGradTest() [all …]
|
/external/v8/src/parsing/ |
D | expression-scope-reparenter.cc | 20 : AstTraversalVisitor(stack_limit, initializer), scope_(scope) {} in Reparenter() 36 Scope* scope_; member in v8::internal::__anonacd4dab80111::Reparenter 40 function_literal->scope()->ReplaceOuterScope(scope_); in VisitFunctionLiteral() 44 class_literal->scope()->ReplaceOuterScope(scope_); in VisitClassLiteral() 72 if (scope_->outer_scope()->RemoveUnresolved(proxy)) { in VisitVariableProxy() 73 scope_->AddUnresolved(proxy); in VisitVariableProxy() 78 proxy->var()->scope() == scope_->GetClosureScope()); in VisitVariableProxy() 84 expr->set_scope(scope_); in VisitRewritableExpression() 89 stmt->scope()->ReplaceOuterScope(scope_); in VisitBlock() 97 stmt->scope()->ReplaceOuterScope(scope_); in VisitTryCatchStatement() [all …]
|
D | preparser.cc | 91 DCHECK_NULL(scope_); in PreParseProgram() 102 FunctionState top_scope(&function_state_, &scope_, scope); in PreParseProgram() 103 original_scope_ = scope_; in PreParseProgram() 153 DCHECK_NULL(scope_); in PreParseFunction() 154 FunctionState function_state(&function_state_, &scope_, function_scope); in PreParseFunction() 188 BlockState block_state(&scope_, inner_scope); in PreParseFunction() 304 FunctionState function_state(&function_state_, &scope_, function_scope); in ParseFunctionLiteral()
|
/external/tensorflow/tensorflow/cc/framework/ |
D | gradients_test.cc | 511 StopGradientSingleOutputMultiEdgeTest() : scope_(Scope::NewRootScope()) {} in StopGradientSingleOutputMultiEdgeTest() 517 auto x = Const(scope_, {{1, 0}, {0, 1}}); in CheckGrad() 518 auto y = Const(scope_, {{1, 0}, {0, 1}}); in CheckGrad() 519 auto z = MatMul(scope_, x, y); in CheckGrad() 524 ? StopGradient(scope_, (Identity(scope_, z))).output in CheckGrad() 525 : Identity(scope_, z).output; in CheckGrad() 527 ? StopGradient(scope_, (Identity(scope_, z))).output in CheckGrad() 528 : Identity(scope_, z).output; in CheckGrad() 530 ? StopGradient(scope_, (Identity(scope_, z))).output in CheckGrad() 531 : 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::__anonb1a79a530111::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 | 101 const Scope& scope_; member in tensorflow::__anon810028dc0111::SymbolicGradientBuilder 144 : scope_(scope), in SymbolicGradientBuilder() 168 std::vector<bool> reachable_nodes(scope_.graph()->num_node_ids(), false); in GetReachableNodes() 283 pending_.resize(scope_.graph()->num_node_ids(), 0); in Initialize() 367 *grad = ops::AddN(scope_, grads_to_keep); in SumGradients() 385 TF_RETURN_IF_ERROR(grad_fn(scope_, op, grad_inputs, grad_outputs)); in CallGradFunction() 386 TF_RETURN_IF_ERROR(scope_.status()); in CallGradFunction() 418 scope_.NewSubScope(strings::StrCat(while_ctx->frame_name(), "_grad")); in ProcessWhileLoop() 510 dy[dy_index] = ops::ZerosLike(scope_, Output(n, dy_index)); in AddGradients()
|
/external/v8/src/compiler/ |
D | pipeline-statistics.cc | 19 DCHECK(!scope_); in Begin() 20 scope_.reset(new ZoneStats::StatsScope(pipeline_stats->zone_stats_)); in Begin() 33 DCHECK(scope_); in End() 38 diff->max_allocated_bytes_ = outer_zone_diff + scope_->GetMaxAllocatedBytes(); in End() 42 outer_zone_diff + scope_->GetTotalAllocatedBytes(); in End() 43 scope_.reset(); in End()
|
D | pipeline-statistics.h | 43 std::unique_ptr<ZoneStats::StatsScope> scope_; variable 52 bool InPhaseKind() { return !!phase_kind_stats_.scope_; } in InPhaseKind() 55 bool InPhase() { return !!phase_stats_.scope_; } in InPhase()
|
/external/v8/src/ast/ |
D | variables.cc | 18 : scope_(other->scope_), in Variable() 30 scope_ != nullptr && scope_->is_script_scope(); in IsGlobalObjectProperty()
|
D | variables.h | 24 : scope_(scope), in scope_() function 49 Scope* scope() const { return scope_; } in scope() 53 void set_scope(Scope* scope) { scope_ = scope; } in set_scope() 187 Scope* scope_;
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_extension_lite.cc | 50 scope_ = name_resolver_->GetImmutableClassName( in ImmutableExtensionLiteGenerator() 53 scope_ = name_resolver_->GetImmutableClassName(descriptor_->file()); in ImmutableExtensionLiteGenerator() 62 InitTemplateVars(descriptor_, scope_, kUseImmutableNames, name_resolver_, in Generate() 110 "scope", scope_, in GenerateRegistrationCode()
|
D | java_extension.cc | 54 scope_ = name_resolver_->GetImmutableClassName( in ImmutableExtensionGenerator() 57 scope_ = name_resolver_->GetImmutableClassName(descriptor_->file()); in ImmutableExtensionGenerator() 115 InitTemplateVars(descriptor_, scope_, kUseImmutableNames, name_resolver_, in Generate() 166 "scope", scope_, 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 …]
|
D | type_check.cc | 31 if (n->scope_) in visit_block_stmt_node() 32 scopes_->push_var(n->scope_); in visit_block_stmt_node() 38 if (n->scope_) in visit_block_stmt_node() 260 if (n->block_->scope_) { in check_lookup_method() 263 n->block_->scope_->add("_result", result.get()); in check_lookup_method() 434 s1->subs_[0].block_->scope_->add("$" + name, offset_var.get()); in visit_state_decl_stmt_node() 459 scopes_->push_state(it->scope_); in visit_state_decl_stmt_node() 538 scopes_->push_state(n->scope_); in visit_func_decl_stmt_node()
|
/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::__anon371ba7300111::WhileLoopTest
|
/external/v8/src/tracing/ |
D | trace-event.h | 330 : scope_(scope), raw_id_(raw_id) {} in WithScope() 332 const char* scope() const { return scope_; } in scope() 335 const char* scope_ = nullptr; 355 : scope_(scoped_id.scope()), raw_id_(scoped_id.raw_id()) {} in DontMangle() 356 const char* scope() const { return scope_; } in scope() 360 const char* scope_ = nullptr; 391 : scope_(maybe_scoped_id.scope()), raw_id_(maybe_scoped_id.raw_id()) {} in TraceID() 421 : scope_(scoped_id.scope()), raw_id_(scoped_id.raw_id()) {} in TraceID() 424 const char* scope() const { return scope_; } in scope() 427 const char* scope_ = nullptr;
|
/external/v8/src/libplatform/tracing/ |
D | trace-object.cc | 46 scope_ = scope; in Initialize() 91 CopyTraceObjectParameter(&ptr, &scope_); in Initialize() 124 scope_ = scope; in InitializeForTesting()
|
/external/v8/src/torque/ |
D | scope.cc | 43 Scope::Activator::Activator(Scope* scope) : scope_(scope) { in Activator() 47 Scope::Activator::~Activator() { scope_->GetScopeChain().PopScope(); } in ~Activator()
|
/external/libchrome/base/trace_event/ |
D | trace_event.h | 546 : scope_(scope), raw_id_(raw_id) {} in WithScope() 548 : scope_(scope), raw_id_(local_id.raw_id()) { in WithScope() 552 : scope_(scope), raw_id_(global_id.raw_id()) { in WithScope() 558 : scope_(scope), has_prefix_(true), prefix_(prefix), raw_id_(raw_id) {} in WithScope() 560 : scope_(scope), in WithScope() 567 const char* scope() const { return scope_; } in scope() 573 const char* scope_ = nullptr; 659 : scope_(scoped_id.scope()), in TraceID() 666 const char* scope() const { return scope_; } in scope() 675 const char* scope_ = nullptr;
|
/external/webrtc/webrtc/base/ |
D | win32socketserver_unittest.cc | 40 Win32SocketTest() : server_(NULL), scope_(&server_) {} in Win32SocketTest() 42 SocketServerScope scope_; member in rtc::Win32SocketTest
|