Home
last modified time | relevance | path

Searched refs:scope_ (Results 1 – 25 of 63) sorted by relevance

123

/external/tensorflow/tensorflow/cc/gradients/
Darray_grad_test.cc33 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::__anon61f3c7940111::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 …]
Dmath_grad_test.cc59 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 …]
Dnn_grad_test.cc52 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::__anon46034d710111::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 …]
Ddata_flow_grad_test.cc35 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::__anoncb7e04260111::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 …]
Dimage_grad_test.cc38 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::__anon5783fc980111::ImageGradTest
185 ScaleAndTranslateGradTest() : scope_(Scope::NewRootScope()) {} in ScaleAndTranslateGradTest()
[all …]
/external/v8/src/handles/
Dlocal-handles-inl.h19 Address* result = handles->scope_.next; in GetHandle()
20 if (result == handles->scope_.limit) { in GetHandle()
23 DCHECK_LT(result, handles->scope_.limit); in GetHandle()
24 handles->scope_.next++; in GetHandle()
35 prev_next_ = handles->scope_.next; in LocalHandleScope()
36 prev_limit_ = handles->scope_.limit; in LocalHandleScope()
37 handles->scope_.level++; in LocalHandleScope()
47 HandleScopeData* current = &local_heap_->handles()->scope_; in CloseAndEscape()
65 Address* old_limit = handles->scope_.limit; in CloseScope()
67 handles->scope_.next = prev_next; in CloseScope()
[all …]
Dlocal-handles.cc13 LocalHandles::LocalHandles() { scope_.Initialize(); } in LocalHandles()
15 scope_.limit = nullptr; in ~LocalHandles()
32 FullObjectSlot(scope_.next)); in Iterate()
45 : scope_.next; in Contains()
55 DCHECK_EQ(scope_.next, scope_.limit); in AddBlock()
58 scope_.next = block; in AddBlock()
59 scope_.limit = block + kHandleBlockSize; in AddBlock()
68 if (block_limit == scope_.limit) { in RemoveUnusedBlocks()
/external/tensorflow/tensorflow/cc/framework/
Dgradients_test.cc511 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 …]
Dwhile_gradients_test.cc32 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::__anon505c52fe0111::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 …]
Dgradients.cc101 const Scope& scope_; member in tensorflow::__anon96524e670111::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/ast/
Dvariables.cc18 : scope_(other->scope_), in Variable()
30 scope_ != nullptr && scope_->is_script_scope(); in IsGlobalObjectProperty()
38 DCHECK(scope_->is_repl_mode_scope()); in RewriteLocationForRepl()
Dvariables.h27 : scope_(scope), in scope_() function
55 Scope* scope() const { return scope_; } in scope()
59 void set_scope(Scope* scope) { scope_ = scope; } in set_scope()
251 Scope* scope_;
/external/v8/src/compiler/
Dpipeline-statistics.cc30 DCHECK(!scope_); in Begin()
31 scope_.reset(new ZoneStats::StatsScope(pipeline_stats->zone_stats_)); in Begin()
44 DCHECK(scope_); in End()
49 diff->max_allocated_bytes_ = outer_zone_diff + scope_->GetMaxAllocatedBytes(); in End()
53 outer_zone_diff + scope_->GetTotalAllocatedBytes(); in End()
54 scope_.reset(); in End()
Dpipeline-statistics.h47 std::unique_ptr<ZoneStats::StatsScope> scope_; variable
53 bool InPhaseKind() { return !!phase_kind_stats_.scope_; } in InPhaseKind()
56 bool InPhase() { return !!phase_stats_.scope_; } in InPhase()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_extension_lite.cc49 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()
Djava_extension.cc54 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/v8/src/parsing/
Dexpression-scope.h666 explicit AccumulationScope(ExpressionScope<Types>* scope) : scope_(nullptr) { in AccumulationScope()
668 scope_ = scope->AsExpressionParsingScope(); in AccumulationScope()
671 scope_->clear(i); in AccumulationScope()
679 if (scope_ == nullptr) return; in Accumulate()
680 DCHECK(!scope_->is_verified()); in Accumulate()
683 scope_->clear(i); in Accumulate()
695 if (scope_ == nullptr) return; in ValidateExpression()
696 DCHECK(!scope_->is_verified()); in ValidateExpression()
697 scope_->ValidateExpression(); in ValidateExpression()
698 DCHECK(scope_->is_verified()); in ValidateExpression()
[all …]
Dpreparser.cc72 DCHECK_NULL(scope_); in PreParseProgram()
83 FunctionState top_scope(&function_state_, &scope_, scope); in PreParseProgram()
84 original_scope_ = scope_; in PreParseProgram()
126 DCHECK_NULL(scope_); in PreParseFunction()
127 FunctionState function_state(&function_state_, &scope_, function_scope); in PreParseFunction()
166 BlockState block_state(&scope_, inner_scope); in PreParseFunction()
298 FunctionState function_state(&function_state_, &scope_, function_scope); in ParseFunctionLiteral()
/external/bcc/src/cc/frontends/b/
Dparser.yy133 { 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 …]
Dnode.h337 : 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/
Dwhile_loop_test.cc30 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::__anon4c6dccbb0111::WhileLoopTest
/external/perfetto/src/tracing/
Dtrack_event_legacy.cc66 if (scope_) in Write()
67 event->set_id_scope(scope_); in Write()
/external/v8/src/libplatform/tracing/
Dtrace-object.cc45 scope_ = scope; in Initialize()
90 CopyTraceObjectParameter(&ptr, &scope_); in Initialize()
123 scope_ = scope; in InitializeForTesting()
/external/v8/src/heap/
Darray-buffer-sweeper.cc249 if (scope_ == SweepingScope::kYoung) { in Sweep()
252 CHECK_EQ(scope_, SweepingScope::kFull); in Sweep()
259 CHECK_EQ(scope_, SweepingScope::kFull); in SweepFull()
292 CHECK_EQ(scope_, SweepingScope::kYoung); in SweepYoung()
Darray-buffer-sweeper.h81 SweepingScope scope_; member
90 scope_(scope) {} in SweepingJob()

123