Home
last modified time | relevance | path

Searched refs:scope (Results 1 – 25 of 4695) sorted by relevance

12345678910>>...188

/external/tensorflow/tensorflow/cc/gradients/
Dmath_grad.cc44 Output ConjugateHelper(const Scope& scope, const Output& out) { in ConjugateHelper() argument
47 return Conj(scope, out); in ConjugateHelper()
55 Status AbsGrad(const Scope& scope, const Operation& op, in AbsGrad() argument
59 grad_outputs->push_back(Mul(scope, grad_inputs[0], Sign(scope, op.input(0)))); in AbsGrad()
60 return scope.status(); in AbsGrad()
64 Status NegGrad(const Scope& scope, const Operation& op, in NegGrad() argument
68 grad_outputs->push_back(Neg(scope, grad_inputs[0])); in NegGrad()
69 return scope.status(); in NegGrad()
73 Status InvGrad(const Scope& scope, const Operation& op, in InvGrad() argument
78 internal::ReciprocalGrad(scope, op.output(0), grad_inputs[0])); in InvGrad()
[all …]
Darray_grad.cc41 Status PackGrad(const Scope& scope, const Operation& op, in PackGrad() argument
50 auto grad_op = Unstack(scope, grad_inputs[0], N, Unstack::Axis(axis)); in PackGrad()
54 return scope.status(); in PackGrad()
58 Status UnpackGrad(const Scope& scope, const Operation& op, in UnpackGrad() argument
63 grad_outputs->push_back(Stack(scope, grad_inputs, Stack::Axis(axis))); in UnpackGrad()
64 return scope.status(); in UnpackGrad()
68 Status IdentityGrad(const Scope& scope, const Operation& op, in IdentityGrad() argument
71 grad_outputs->push_back(Identity(scope, grad_inputs[0])); in IdentityGrad()
72 return scope.status(); in IdentityGrad()
76 Status RefIdentityGrad(const Scope& scope, const Operation& op, in RefIdentityGrad() argument
[all …]
Dnn_grad.cc27 Status SoftmaxGrad(const Scope& scope, const Operation& op, in SoftmaxGrad() argument
41 auto dyy = Mul(scope, grad_inputs[0], y); in SoftmaxGrad()
42 auto sum = Reshape(scope, Sum(scope, dyy, {1}), {-1, 1}); in SoftmaxGrad()
43 auto sub = Sub(scope, grad_inputs[0], sum); in SoftmaxGrad()
44 auto dx = Mul(scope, sub, y); in SoftmaxGrad()
46 return scope.status(); in SoftmaxGrad()
50 bool IsZero(const Scope& scope, const Output& grad) { in IsZero() argument
71 Output BroadcastMul(const Scope& scope, const Output& vec, const Output& mat) { in BroadcastMul() argument
72 auto reshaped = ExpandDims(scope, vec, -1); in BroadcastMul()
73 return Multiply(scope, reshaped, mat); in BroadcastMul()
[all …]
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/op/core/
DConstant.java47 public static Constant<Integer> create(Scope scope, int data) { in create() argument
48 return create(scope, data, Integer.class); in create()
58 public static Constant<Integer> create(Scope scope, int[] data) { in create() argument
59 return create(scope, data, Integer.class); in create()
69 public static Constant<Integer> create(Scope scope, int[][] data) { in create() argument
70 return create(scope, data, Integer.class); in create()
80 public static Constant<Integer> create(Scope scope, int[][][] data) { in create() argument
81 return create(scope, data, Integer.class); in create()
91 public static Constant<Integer> create(Scope scope, int[][][][] data) { in create() argument
92 return create(scope, data, Integer.class); in create()
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dshape-handler.js15 (function(scope) { argument
17 var consumeLengthOrPercent = scope.consumeParenthesised.bind(null, scope.parseLengthOrPercent);
18 …var consumeLengthOrPercentPair = scope.consumeRepeated.bind(undefined, consumeLengthOrPercent, /^/…
20 var mergeSizePair = scope.mergeNestedRepeated.bind(undefined, scope.mergeDimensions, ' ');
21 var mergeSizePairList = scope.mergeNestedRepeated.bind(undefined, mergeSizePair, ',');
24 var circle = scope.consumeToken(/^circle/, input);
26 return ['circle'].concat(scope.consumeList([
27 scope.ignore(scope.consumeToken.bind(undefined, /^\(/)),
30 scope.consumePosition,
31 scope.ignore(scope.consumeToken.bind(undefined, /^\)/))
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow_test.cc105 Scope scope = Scope::NewRootScope().ExitOnError(); in BuildCondGraph() local
107 auto x = ops::Placeholder(scope.WithOpName("x"), DT_INT32); in BuildCondGraph()
108 auto y = ops::Placeholder(scope.WithOpName("y"), DT_INT32); in BuildCondGraph()
109 auto less = ops::Less(scope.WithOpName("cond/Less"), y, x); in BuildCondGraph()
110 auto switch_1 = ops::Switch(scope.WithOpName("cond/Switch"), less, less); in BuildCondGraph()
113 ops::Identity(scope.WithOpName("cond/Identity"), switch_1.output_true); in BuildCondGraph()
115 scope.WithOpName("cond").WithControlDependencies(identity_t), 17); in BuildCondGraph()
116 auto switch_2 = ops::Switch(scope.WithOpName("cond/Switch"), y, less); in BuildCondGraph()
117 auto mul = ops::Multiply(scope.WithOpName("cond/Mul"), switch_2.output_true, in BuildCondGraph()
121 ops::Identity(scope.WithOpName("cond/Identity"), switch_1.output_false); in BuildCondGraph()
[all …]
/external/rust/crates/crossbeam-utils/tests/
Dthread.rs16 thread::scope(|scope| { in join()
17 let handle = scope.spawn(|_| { in join()
22 let panic_handle = scope.spawn(|_| { in join()
36 thread::scope(|scope| { in counter()
38 scope.spawn(|_| { in counter()
51 thread::scope(|scope| { in counter_builder()
53 scope in counter_builder()
73 let result = thread::scope(|scope| { in counter_panic()
74 scope.spawn(|_| { in counter_panic()
80 scope.spawn(|_| { in counter_panic()
[all …]
/external/vixl/src/aarch64/
Dcpu-features-auditor-aarch64.cc81 RecordInstructionFeaturesScope scope(this); in LoadStoreHelper() local
87 scope.Record(CPUFeatures::kNEON); in LoadStoreHelper()
95 scope.RecordOneOrBothOf(CPUFeatures::kFP, CPUFeatures::kNEON); in LoadStoreHelper()
104 RecordInstructionFeaturesScope scope(this); in LoadStorePairHelper() local
108 scope.Record(CPUFeatures::kNEON); in LoadStorePairHelper()
114 scope.RecordOneOrBothOf(CPUFeatures::kFP, CPUFeatures::kNEON); in LoadStorePairHelper()
124 RecordInstructionFeaturesScope scope(this); in VisitAddSubExtended() local
129 RecordInstructionFeaturesScope scope(this); in VisitAddSubImmediate() local
134 RecordInstructionFeaturesScope scope(this); in VisitAddSubShifted() local
139 RecordInstructionFeaturesScope scope(this); in VisitAddSubWithCarry() local
[all …]
/external/tensorflow/tensorflow/compiler/jit/
Dencapsulate_xla_computations_pass_test.cc38 Scope scope = Scope::NewRootScope().ExitOnError(); in MakeOuterGraph() local
39 TF_EXPECT_OK(scope.graph()->AddFunctionLibrary(flib_def.ToProto())); in MakeOuterGraph()
41 auto a = ops::Placeholder(scope.WithOpName("A"), DT_INT32); in MakeOuterGraph()
42 auto b = ops::Placeholder(scope.WithOpName("B"), DT_FLOAT); in MakeOuterGraph()
43 auto c = ops::Placeholder(scope.WithOpName("C"), DT_INT32); in MakeOuterGraph()
44 auto d = ops::Placeholder(scope.WithOpName("D"), DT_FLOAT); in MakeOuterGraph()
45 auto u = ops::Placeholder(scope.WithOpName("U"), DT_RESOURCE); in MakeOuterGraph()
46 auto v = ops::Placeholder(scope.WithOpName("V"), DT_RESOURCE); in MakeOuterGraph()
47 auto w = ops::Placeholder(scope.WithOpName("W"), DT_RESOURCE); in MakeOuterGraph()
64 Node* launch = scope.graph()->AddNode(def, &status); in MakeOuterGraph()
[all …]
Dshape_inference_test.cc70 Scope scope = Scope::NewRootScope().ExitOnError(); in TEST() local
72 auto dummy = ops::Placeholder(scope.WithOpName("Dummy"), DT_INT32, in TEST()
75 auto source = ops::Placeholder(scope.WithOpName("source"), DT_INT32, in TEST()
78 ops::internal::Enter(scope.WithOpName("while/Enter"), source, "aloop"); in TEST()
81 ops::internal::Enter(scope.WithOpName("while/Enter2"), source, "aloop"); in TEST()
82 auto merge = ops::Merge(scope.WithOpName("while/Merge"), in TEST()
85 scope.WithOpName("while/Less/y").WithControlDependencies(merge.output), in TEST()
87 auto less = ops::Less(scope.WithOpName("while/Less"), merge.output, ten); in TEST()
88 auto loop_cond = ops::LoopCond(scope.WithOpName("while/LoopCond"), less); in TEST()
90 ops::Switch(scope.WithOpName("while/Switch"), merge.output, loop_cond); in TEST()
[all …]
/external/llvm/test/CodeGen/PowerPC/
Dpr17168.ll60 …: DIFlagPrototyped, isOptimized: true, unit: !0, scopeLine: 74, file: !1, scope: !5, type: !6, var…
69 !13 = !DILocalVariable(name: "argc", line: 74, arg: 1, scope: !4, file: !5, type: !8)
70 !14 = !DILocalVariable(name: "argv", line: 74, arg: 2, scope: !4, file: !5, type: !9)
71 !15 = !DILocalVariable(name: "niter", line: 76, scope: !4, file: !5, type: !8)
72 !16 = !DILocalVariable(name: "step", line: 76, scope: !4, file: !5, type: !8)
73 !17 = !DILocalVariable(name: "n3", line: 76, scope: !4, file: !5, type: !8)
74 !18 = !DILocalVariable(name: "nthreads", line: 77, scope: !4, file: !5, type: !8)
75 !19 = !DILocalVariable(name: "navg", line: 78, scope: !4, file: !5, type: !20)
77 !21 = !DILocalVariable(name: "mflops", line: 78, scope: !4, file: !5, type: !20)
78 !22 = !DILocalVariable(name: "tmax", line: 80, scope: !4, file: !5, type: !20)
[all …]
/external/tensorflow/tensorflow/cc/framework/
Dgradient_checker_test.cc42 Scope scope = Scope::NewRootScope(); in TEST() local
44 auto x = Placeholder(scope, DT_FLOAT, Placeholder::Shape(shape)); in TEST()
45 auto y = Square(scope, x); in TEST()
48 scope, {x}, {shape}, {y}, {shape}, &max_error))); in TEST()
53 Scope scope = Scope::NewRootScope(); in TEST() local
55 auto x = Placeholder(scope, DT_DOUBLE, Placeholder::Shape(shape)); in TEST()
56 auto y = Square(scope, x); in TEST()
59 scope, {x}, {shape}, {y}, {shape}, &max_error))); in TEST()
64 Scope scope = Scope::NewRootScope(); in TEST() local
66 auto x = Placeholder(scope, DT_COMPLEX64, Placeholder::Shape(shape)); in TEST()
[all …]
Dgradients_test.cc89 const Scope& scope = expected ? scope_expected_ : scope_test_; in TEST_F() local
91 auto x = Const(scope, {{1.0, 2.0}, {3.0, 4.0}}); in TEST_F()
92 auto y = Const(scope, {{1.0, 0.0}, {0.0, 1.0}}); in TEST_F()
93 auto z = MatMul(scope, x, y); in TEST_F()
94 TF_ASSERT_OK(scope.status()); in TEST_F()
99 auto dz = Const(scope, {{1.0, 1.0}, {1.0, 1.0}}); in TEST_F()
100 auto dx = MatMul(scope, dz, y, MatMul::TransposeB(true)); in TEST_F()
101 auto dy = MatMul(scope, x, dz, MatMul::TransposeA(true)); in TEST_F()
104 auto dz = Const(scope, {{1.0, 1.0}, {1.0, 1.0}}); in TEST_F()
107 AddSymbolicGradients(scope, {z}, {x, y}, {dz}, &grad_outputs)); in TEST_F()
[all …]
/external/rust/crates/crossbeam-channel/tests/
Dzero.rs12 use crossbeam_utils::thread::scope;
44 scope(|scope| { in len_empty_full()
45 scope.spawn(|_| s.send(0).unwrap()); in len_empty_full()
46 scope.spawn(|_| r.recv().unwrap()); in len_empty_full()
62 scope(|scope| { in try_recv()
63 scope.spawn(move |_| { in try_recv()
70 scope.spawn(move |_| { in try_recv()
82 scope(|scope| { in recv()
83 scope.spawn(move |_| { in recv()
91 scope.spawn(move |_| { in recv()
[all …]
/external/python/cpython2/Lib/compiler/
Dsymbols.py220 scope = self.module = self.scopes[node] = ModuleScope()
221 self.visit(node.node, scope)
231 scope = FunctionScope(node.name, self.module, self.klass)
233 scope.nested = 1
234 self.scopes[node] = scope
235 self._do_args(scope, node.argnames)
236 self.visit(node.code, scope)
237 self.handle_free_vars(scope, parent)
240 scope = GenExprScope(self.module, self.klass);
243 scope.nested = 1
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dactivity_test.py43 def assertMissing(self, qn, scope): argument
44 self.assertNotIn(qn, scope.read)
45 self.assertNotIn(qn, scope.modified)
47 def assertReadOnly(self, qn, scope): argument
48 self.assertIn(qn, scope.read)
49 self.assertNotIn(qn, scope.modified)
51 def assertWriteOnly(self, qn, scope): argument
52 self.assertNotIn(qn, scope.read)
53 self.assertIn(qn, scope.modified)
55 def assertReadWrite(self, qn, scope): argument
[all …]
/external/tensorflow/tensorflow/go/op/
Dwrappers.go46 func XlaSpmdShardToFullShape(scope *Scope, input tf.Output, manual_sharding string, full_shape tf.S…
47 if scope.Err() != nil {
58 op := scope.AddOperation(opspec)
73 func XlaSort(scope *Scope, input tf.Output) (output tf.Output) {
74 if scope.Err() != nil {
83 op := scope.AddOperation(opspec)
98 func XlaRecv(scope *Scope, dtype tf.DataType, tensor_name string, shape tf.Shape) (tensor tf.Output…
99 if scope.Err() != nil {
108 op := scope.AddOperation(opspec)
130 func XlaDynamicSlice(scope *Scope, input tf.Output, start_indices tf.Output, size_indices tf.Output…
[all …]
/external/llvm-project/llvm/test/CodeGen/PowerPC/
Dpr17168.ll61 !1 = !DIGlobalVariable(name: "grid_points", scope: null, file: !2, line: 28, type: !3, isLocal: tru…
72 !12 = !DIGlobalVariable(name: "dt", scope: null, file: !2, line: 35, type: !13, isLocal: true, isDe…
75 !15 = !DIGlobalVariable(name: "rhs", scope: null, file: !2, line: 68, type: !16, isLocal: true, isD…
81 !21 = !DIGlobalVariable(name: "zzcon5", scope: null, file: !2, line: 42, type: !13, isLocal: true, …
83 !23 = !DIGlobalVariable(name: "zzcon4", scope: null, file: !2, line: 42, type: !13, isLocal: true, …
85 !25 = !DIGlobalVariable(name: "zzcon3", scope: null, file: !2, line: 42, type: !13, isLocal: true, …
87 !27 = !DIGlobalVariable(name: "dz5tz1", scope: null, file: !2, line: 43, type: !13, isLocal: true, …
89 !29 = !DIGlobalVariable(name: "dz4tz1", scope: null, file: !2, line: 43, type: !13, isLocal: true, …
91 !31 = !DIGlobalVariable(name: "dz3tz1", scope: null, file: !2, line: 43, type: !13, isLocal: true, …
93 !33 = !DIGlobalVariable(name: "zzcon2", scope: null, file: !2, line: 42, type: !13, isLocal: true, …
[all …]
/external/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/
Dlocstats.ll4 ; CHECK: "sum_all_variables(#bytes in parent scope covered by DW_OP_entry_value)": 5,
5 ; CHECK-NEXT: "sum_all_params(#bytes in parent scope)": 20,
6 ; CHECK-NEXT: "sum_all_params(#bytes in parent scope covered by DW_AT_location)": 20,
7 ; CHECK-NEXT: "sum_all_params(#bytes in parent scope covered by DW_OP_entry_value)": 5,
8 ; CHECK-NEXT: "sum_all_local_vars(#bytes in parent scope)": 90,
9 ; CHECK-NEXT: "sum_all_local_vars(#bytes in parent scope covered by DW_AT_location)": 60,
10 ; CHECK-NEXT: "sum_all_local_vars(#bytes in parent scope covered by DW_OP_entry_value)": 0,
18 ; CHECK-NEXT: "#variables with 0% of parent scope covered by DW_AT_location": 1,
19 ; CHECK-NEXT: "#variables with (0%,10%) of parent scope covered by DW_AT_location": 0,
20 ; CHECK-NEXT: "#variables with [10%,20%) of parent scope covered by DW_AT_location": 0,
[all …]
/external/llvm-project/polly/test/ScopInfo/
Dremarks.ll191 !4 = distinct !DISubprogram(name: "valid", scope: !1, file: !1, line: 3, type: !5, isLocal: false, …
200 !13 = distinct !DISubprogram(name: "invalid0", scope: !1, file: !1, line: 18, type: !14, isLocal: f…
203 !16 = distinct !DISubprogram(name: "invalid1", scope: !1, file: !1, line: 25, type: !17, isLocal: f…
210 !23 = !DILocalVariable(name: "A", arg: 1, scope: !4, file: !1, line: 3, type: !7)
212 !25 = !DILocation(line: 3, column: 17, scope: !4)
213 !26 = !DILocalVariable(name: "B", arg: 2, scope: !4, file: !1, line: 3, type: !7)
214 !27 = !DILocation(line: 3, column: 25, scope: !4)
215 !28 = !DILocalVariable(name: "N", arg: 3, scope: !4, file: !1, line: 3, type: !8)
216 !29 = !DILocation(line: 3, column: 32, scope: !4)
217 !30 = !DILocalVariable(name: "M", arg: 4, scope: !4, file: !1, line: 3, type: !8)
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestBuildersTest.kt16 val scope = TestCoroutineScope() in scopeRunBlocking_passesDispatcher() constant
17 scope.runBlockingTest { in scopeRunBlocking_passesDispatcher()
18 …assertSame(scope.coroutineContext[ContinuationInterceptor], coroutineContext[ContinuationIntercept… in scopeRunBlocking_passesDispatcher()
32 val scope = TestCoroutineScope() in scopeRunBlocking_advancesPreviousDelay() constant
33 val deferred = scope.async { in scopeRunBlocking_advancesPreviousDelay()
38 scope.runBlockingTest { in scopeRunBlocking_advancesPreviousDelay()
48 val scope = CoroutineScope(dispatcher) in dispatcherRunBlocking_advancesPreviousDelay() constant
49 val deferred = scope.async { in dispatcherRunBlocking_advancesPreviousDelay()
63 val scope = TestCoroutineScope() in scopeRunBlocking_disablesImmedateOnExit() constant
64 scope.runBlockingTest { in scopeRunBlocking_disablesImmedateOnExit()
[all …]
/external/llvm-project/polly/test/ScopDetectionDiagnostics/
Dloop_has_multiple_exits.ll228 !9 = distinct !DISubprogram(name: "encode_line", scope: !10, file: !10, line: 79, type: !11, isLoca…
236 !17 = !DILocalVariable(name: "input", arg: 1, scope: !9, file: !10, line: 79, type: !13)
237 !18 = !DILocalVariable(name: "offset", arg: 2, scope: !9, file: !10, line: 79, type: !15)
238 !19 = !DILocalVariable(name: "octets", arg: 3, scope: !9, file: !10, line: 79, type: !15)
239 !20 = !DILocalVariable(name: "line", arg: 4, scope: !9, file: !10, line: 79, type: !13)
240 !21 = !DILocalVariable(name: "loffs", scope: !9, file: !10, line: 80, type: !15)
241 !22 = !DILocalVariable(name: "ch", scope: !23, file: !10, line: 86, type: !14)
242 !23 = distinct !DILexicalBlock(scope: !24, file: !10, line: 83, column: 55)
243 !24 = distinct !DILexicalBlock(scope: !25, file: !10, line: 83, column: 3)
244 !25 = distinct !DILexicalBlock(scope: !9, file: !10, line: 83, column: 3)
[all …]
/external/tensorflow/tensorflow/cc/ops/
Dconst_op.cc24 Output ConstHelper(const Scope& scope, const T& value, DataType dtype) { in ConstHelper() argument
25 if (!scope.ok()) return Output(); in ConstHelper()
28 Graph* graph = scope.graph(); in ConstHelper()
29 const string unique_name = scope.GetUniqueNameForOp("Const"); in ConstHelper()
33 scope.UpdateBuilder(&builder); in ConstHelper()
34 scope.UpdateStatus(builder.Finalize(graph, &ret)); in ConstHelper()
35 if (!scope.ok()) return Output(); in ConstHelper()
37 scope.UpdateStatus(scope.DoShapeInference(ret)); in ConstHelper()
38 if (!scope.ok()) return Output(); in ConstHelper()
44 Output Const(const Scope& scope, const Input::Initializer& val) { in Const() argument
[all …]
/external/rust/crates/rayon-core/src/scope/
Dtest.rs3 use crate::{scope, scope_fifo, Scope, ScopeFifo};
14 scope(|_| {}); in scope_empty()
19 let x = scope(|_| 22); in scope_result()
26 scope(|s| { in scope_two()
42 scope(|s| s.spawn(move |s| divide_and_conquer(s, counter_p, 1024))); in scope_divide_and_conquer()
52 fn divide_and_conquer<'scope>(scope: &Scope<'scope>, counter: &'scope AtomicUsize, size: usize) { in divide_and_conquer() argument
54 scope.spawn(move |scope| divide_and_conquer(scope, counter, size / 2)); in divide_and_conquer()
55 scope.spawn(move |scope| divide_and_conquer(scope, counter, size / 2)); in divide_and_conquer()
90 scope(|s| self.update_in_scope(&op, s)); in update()
93 fn update_in_scope<'scope, OP>(&'scope mut self, op: &'scope OP, scope: &Scope<'scope>) in update_in_scope() argument
[all …]
Dmod.rs26 pub struct Scope<'scope> {
27 base: ScopeBase<'scope>,
35 pub struct ScopeFifo<'scope> {
36 base: ScopeBase<'scope>,
40 struct ScopeBase<'scope> {
60 marker: PhantomData<Box<dyn FnOnce(&Scope<'scope>) + Send + Sync + 'scope>>,
286 pub fn scope<'scope, OP, R>(op: OP) -> R in scope() argument
288 OP: FnOnce(&Scope<'scope>) -> R + Send, in scope()
292 let scope = Scope::<'scope>::new(owner_thread); in scope() localVariable
293 unsafe { scope.base.complete(owner_thread, || op(&scope)) } in scope()
[all …]

12345678910>>...188