/external/tensorflow/tensorflow/cc/gradients/ |
D | math_grad.cc | 44 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 …]
|
D | array_grad.cc | 41 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 …]
|
D | nn_grad.cc | 27 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/ |
D | Constant.java | 47 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/tensorflow/tensorflow/compiler/tf2xla/ |
D | functionalize_control_flow_test.cc | 105 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/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/ |
D | shape-handler.js | 15 (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/vixl/src/aarch64/ |
D | cpu-features-auditor-aarch64.cc | 81 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/llvm/test/CodeGen/PowerPC/ |
D | pr17168.ll | 60 …: 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/rust/crates/crossbeam-utils/tests/ |
D | thread.rs | 16 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/tensorflow/tensorflow/compiler/jit/ |
D | encapsulate_xla_computations_pass_test.cc | 38 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 …]
|
D | shape_inference_test.cc | 70 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/tensorflow/tensorflow/cc/framework/ |
D | gradient_checker_test.cc | 42 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 …]
|
D | gradients_test.cc | 89 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/ |
D | zero.rs | 12 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 …]
|
D | array.rs | 14 use crossbeam_utils::thread::scope; 86 scope(|scope| { in try_recv() 87 scope.spawn(move |_| { in try_recv() 94 scope.spawn(move |_| { in try_recv() 106 scope(|scope| { in recv() 107 scope.spawn(move |_| { in recv() 115 scope.spawn(move |_| { in recv() 129 scope(|scope| { in recv_timeout() 130 scope.spawn(move |_| { in recv_timeout() 138 scope.spawn(move |_| { in recv_timeout() [all …]
|
/external/tensorflow/tensorflow/go/op/ |
D | wrappers.go | 61 func TPUPartitionedInput(scope *Scope, inputs []tf.Output, optional ...TPUPartitionedInputAttr) (ou… 62 if scope.Err() != nil { 76 op := scope.AddOperation(opspec) 83 func TPUExecute(scope *Scope, args []tf.Output, key tf.Output, Tresults []tf.DataType) (results []t… 84 if scope.Err() != nil { 95 op := scope.AddOperation(opspec) 96 if scope.Err() != nil { 102 scope.UpdateErr("TPUExecute", err) 113 func TPUCompilationResult(scope *Scope) (output tf.Output) { 114 if scope.Err() != nil { [all …]
|
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/ |
D | activity_test.py | 43 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/python/cpython2/Lib/compiler/ |
D | symbols.py | 220 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/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/ |
D | TestCoroutineScopeTest.kt | 28 val scope = createTestCoroutineScope() in <lambda>() constant 29 assertNotNull(scope.coroutineContext[TestCoroutineScheduler]) in <lambda>() 34 val scope = createTestCoroutineScope(dispatcher) in <lambda>() constant 35 assertSame(dispatcher.scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>() 40 val scope = createTestCoroutineScope(scheduler) in <lambda>() constant 41 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>() 42 …assertSame(scheduler, (scope.coroutineContext[ContinuationInterceptor] as TestDispatcher).schedule… in <lambda>() 48 val scope = createTestCoroutineScope(scheduler + dispatcher) in <lambda>() constant 49 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>() 50 assertSame(dispatcher, scope.coroutineContext[ContinuationInterceptor]) in <lambda>() [all …]
|
D | TestBuildersTest.kt | 16 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_disablesImmediatelyOnExit() constant 64 scope.runBlockingTest { in scopeRunBlocking_disablesImmediatelyOnExit() [all …]
|
/external/rust/crates/rayon-core/src/scope/ |
D | mod.rs | 27 pub struct Scope<'scope> { 28 base: ScopeBase<'scope>, 36 pub struct ScopeFifo<'scope> { 37 base: ScopeBase<'scope>, 61 struct ScopeBase<'scope> { 77 marker: PhantomData<Box<dyn FnOnce(&Scope<'scope>) + Send + Sync + 'scope>>, 303 pub fn scope<'scope, OP, R>(op: OP) -> R in scope() function 305 OP: FnOnce(&Scope<'scope>) -> R + Send, in scope() 309 let scope = Scope::<'scope>::new(Some(owner_thread), None); in scope() localVariable 310 scope.base.complete(Some(owner_thread), || op(&scope)) in scope() [all …]
|
D | test.rs | 3 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 …]
|
/external/vixl/test/ |
D | test-code-generation-scopes.cc | 58 CodeBufferCheckScope scope(&masm, aarch32::kA32InstructionSizeInBytes); in TEST() local 72 CodeBufferCheckScope scope(&masm, aarch64::kInstructionSize); in TEST() local 86 CodeBufferCheckScope scope(&masm, 2 * aarch32::kA32InstructionSizeInBytes); in TEST() local 101 CodeBufferCheckScope scope(&masm, 2 * aarch64::kInstructionSize); in TEST() local 116 CodeBufferCheckScope scope; in TEST() local 118 scope.Open(&masm, aarch32::kA32InstructionSizeInBytes); in TEST() 132 CodeBufferCheckScope scope; in TEST() local 134 scope.Open(&masm, aarch64::kInstructionSize); in TEST() 148 CodeBufferCheckScope scope(&masm, aarch32::kA32InstructionSizeInBytes); in TEST() local 150 scope.Close(); in TEST() [all …]
|
/external/tensorflow/tensorflow/core/tfrt/utils/ |
D | tfrt_graph_execution_state_test.cc | 44 auto scope = tensorflow::Scope::NewRootScope().WithDevice("/device:CPU:0"); in TEST_F() local 46 Output a = ops::Const(scope.WithOpName("a"), 0.0f, {10, 10}); in TEST_F() 48 Output b = ops::Const(scope.WithControlDependencies(a).WithOpName("b"), in TEST_F() 50 Output c = ops::Identity(scope.WithOpName("c"), b); in TEST_F() 52 TF_ASSERT_OK(scope.ToGraphDef(&graphdef)); in TEST_F() 63 auto scope = tensorflow::Scope::NewRootScope().WithDevice("/device:CPU:0"); in TEST_F() local 65 Output b = ops::Const(scope.WithOpName("b"), 0.0f, {10, 10}); in TEST_F() 66 Output c = ops::Identity(scope.WithOpName("c"), b); in TEST_F() 68 TF_ASSERT_OK(scope.ToGraphDef(&expected)); in TEST_F() 74 Status LessThanTenCond(const Scope& scope, const std::vector<Output>& inputs, in LessThanTenCond() argument [all …]
|
/external/tensorflow/tensorflow/cc/ops/ |
D | const_op.cc | 24 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 …]
|