/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 | 33 import org.tensorflow.op.Scope; 43 * @param scope is a scope used to add the underlying operation. 47 public static Constant<Integer> create(Scope scope, int data) { in create() argument 48 return create(scope, data, Integer.class); in create() 54 * @param scope is a scope used to add the underlying operation. 58 public static Constant<Integer> create(Scope scope, int[] data) { in create() argument 59 return create(scope, data, Integer.class); in create() 65 * @param scope is a scope used to add the underlying operation. 69 public static Constant<Integer> create(Scope scope, int[][] data) { in create() argument 70 return create(scope, data, Integer.class); in create() [all …]
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Scope.h | 1 //===- Scope.h - Scope interface --------------------------------*- C++ -*-===// 9 // This file defines the Scope interface. 37 /// Scope - A scope is a transient data structure that is used while parsing the 40 class Scope { 43 /// scope, which defines the sorts of things the scope contains. 45 /// This indicates that the scope corresponds to a function, which 57 /// This is a scope that can contain a declaration. Some scopes 61 /// The controlling scope in a if/switch/while/for statement. 64 /// The scope of a struct/union/class definition. 67 /// This is a scope that corresponds to a block/closure object. [all …]
|
/external/clang/include/clang/Sema/ |
D | Scope.h | 1 //===--- Scope.h - Scope interface ------------------------------*- C++ -*-===// 10 // This file defines the Scope interface. 35 /// Scope - A scope is a transient data structure that is used while parsing the 39 class Scope { 42 /// scope, which defines the sorts of things the scope contains. 44 /// \brief This indicates that the scope corresponds to a function, which 56 /// \brief This is a scope that can contain a declaration. Some scopes 60 /// \brief The controlling scope in a if/switch/while/for statement. 63 /// \brief The scope of a struct/union/class definition. 66 /// \brief This is a scope that corresponds to a block/closure object. [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/tensorflow/tensorflow/cc/framework/ |
D | scope.h | 41 /// A `Scope` object represents a set of related TensorFlow ops that have the 44 /// A Scope object is a container for TensorFlow Op properties. Op constructors 45 /// get a Scope object as a mandatory first argument and the constructed op 51 /// Scope root = Scope::NewRootScope(); 58 /// Scope hierarchy: 60 /// The Scope class provides various With<> functions that create a new scope. 61 /// The new scope typically has one property changed while other properties are 62 /// inherited from the parent scope. 64 /// created within the scope, and WithOpName() changes the suffix which 69 /// Scope root = Scope::NewRootScope(); [all …]
|
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 | scope.cc | 27 Scope::Scope(Impl* impl) : impl_(impl) {} in Scope() function in tensorflow::Scope 29 Scope::Scope(const Scope& other) : impl_(new Impl(*other.impl())) {} in Scope() function in tensorflow::Scope 31 Scope::~Scope() {} in ~Scope() 33 Scope& Scope::operator=(const Scope& other) { in operator =() 44 Scope::Impl::Impl(Graph* graph, Status* status, NameMap* name_map, in Impl() 54 Scope::Impl::Impl(const std::shared_ptr<Graph>& graph, in Impl() 66 Scope Scope::NewRootScope() { in NewRootScope() 70 return Scope(new Impl(graph, new Status, new Impl::NameMap, refiner, in NewRootScope() 74 Scope Scope::DisabledShapeInferenceScope() { in DisabledShapeInferenceScope() 78 return Scope(new Impl(graph, new Status, new Impl::NameMap, refiner, in DisabledShapeInferenceScope() [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 | 14 class Scope: class 88 """Return scope of name. 90 The scope of a name could be LOCAL, GLOBAL, FREE, or CELL. 123 """Force name to be global in scope. 127 variable. Now that all its enclosing scope have been 143 """Process list of free vars from nested scope. 147 the nested scope should treat them as globals. 172 class ModuleScope(Scope): 173 __super_init = Scope.__init__ 178 class FunctionScope(Scope): [all …]
|
/external/llvm-project/flang/lib/Semantics/ |
D | scope.cpp | 1 //===-- lib/Semantics/scope.cpp -------------------------------------------===// 9 #include "flang/Semantics/scope.h" 19 Symbols<1024> Scope::allSymbols; 52 Scope &Scope::MakeScope(Kind kind, Symbol *symbol) { in MakeScope() 68 MutableSymbolVector Scope::GetSymbols() { in GetSymbols() 71 SymbolVector Scope::GetSymbols() const { in GetSymbols() 75 Scope::iterator Scope::find(const SourceName &name) { in find() 78 Scope::size_type Scope::erase(const SourceName &name) { in erase() 87 Symbol *Scope::FindSymbol(const SourceName &name) const { in FindSymbol() 98 Symbol *Scope::FindComponent(SourceName name) const { in FindComponent() [all …]
|
/external/vixl/src/aarch64/ |
D | cpu-features-auditor-aarch64.cc | 39 // This scope makes that simple, and allows early returns in the decode logic. 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 [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, /^\(/)), 29 scope.ignore(scope.consumeToken.bind(undefined, /^at/)), 30 scope.consumePosition, [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 …]
|
/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/llvm/lib/CodeGen/ |
D | LexicalScopes.cpp | 1 //===- LexicalScopes.cpp - Collecting lexical scope info ------------------===// 12 // This pass collects lexical scope information and maps machine instructions 39 /// initialize - Scan machine function and constuct lexical scope nest. 71 // If scope has not changed then skip this instruction. in extractLexicalScopes() 83 // current instruction scope does not match scope of first instruction in extractLexicalScopes() 107 /// findLexicalScope - Find lexical scope, either regular or inlined, for the 110 DILocalScope *Scope = DL->getScope(); in findLexicalScope() local 111 if (!Scope) in findLexicalScope() 114 // The scope that we were created with could have an extra file - which in findLexicalScope() 116 Scope = Scope->getNonLexicalBlockFileScope(); in findLexicalScope() [all …]
|
/external/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/ |
D | locstats.ll | 4 ; 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/tensorflow/tensorflow/java/src/main/java/org/tensorflow/op/ |
D | Scope.java | 28 * <p>A {@code Scope} is a container for common properties applied to TensorFlow Ops. Normal user 29 * code initializes a {@code Scope} and provides it to Operation building classes. For example: 32 * Scope scope = new Scope(graph); 33 * Constant c = Constant.create(scope, 42); 36 * <p>An Operation building class acquires a Scope, and uses it to set properties on the underlying 42 * public static Constant create(Scope scope, ...) { 43 * scope.graph().opBuilder( 44 * "Const", scope.makeOpName("Const")) 52 * <p><b>Scope hierarchy:</b> 54 * <p>A {@code Scope} provides various {@code with()} methods that create a new scope. The new scope [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LexicalScopes.cpp | 1 //===- LexicalScopes.cpp - Collecting lexical scope info ------------------===// 11 // This pass collects lexical scope information and maps machine instructions 49 /// initialize - Scan machine function and constuct lexical scope nest. 52 // Don't attempt any lexical scope creation for a NoDebug compile unit. in initialize() 84 // If scope has not changed then skip this instruction. in extractLexicalScopes() 97 // current instruction scope does not match scope of first instruction in extractLexicalScopes() 121 /// findLexicalScope - Find lexical scope, either regular or inlined, for the 124 DILocalScope *Scope = DL->getScope(); in findLexicalScope() local 125 if (!Scope) in findLexicalScope() 128 // The scope that we were created with could have an extra file - which in findLexicalScope() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LexicalScopes.cpp | 1 //===- LexicalScopes.cpp - Collecting lexical scope info ------------------===// 11 // This pass collects lexical scope information and maps machine instructions 50 /// initialize - Scan machine function and constuct lexical scope nest. 53 // Don't attempt any lexical scope creation for a NoDebug compile unit. in initialize() 85 // If scope has not changed then skip this instruction. in extractLexicalScopes() 98 // current instruction scope does not match scope of first instruction in extractLexicalScopes() 122 /// findLexicalScope - Find lexical scope, either regular or inlined, for the 125 DILocalScope *Scope = DL->getScope(); in findLexicalScope() local 126 if (!Scope) in findLexicalScope() 129 // The scope that we were created with could have an extra file - which in findLexicalScope() [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/rust/crates/rayon-core/src/scope/ |
D | mod.rs | 1 //! Methods for custom fork-join scopes, created by the [`scope()`] 4 //! [`scope()`]: fn.scope.html 22 /// Represents a fork-join scope which can be used to spawn any number of tasks. 23 /// See [`scope()`] for more information. 25 ///[`scope()`]: fn.scope.html 26 pub struct Scope<'scope> { struct 27 base: ScopeBase<'scope>, 30 /// Represents a fork-join scope which can be used to spawn any number of tasks. 35 pub struct ScopeFifo<'scope> { 36 base: ScopeBase<'scope>, [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 …]
|