Home
last modified time | relevance | path

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

12345678910>>...145

/external/tensorflow/tensorflow/cc/gradients/
Dmath_grad.cc45 Output ConjugateHelper(const Scope& scope, const Output& out) { in ConjugateHelper() argument
48 return Conj(scope, out); in ConjugateHelper()
56 Status AbsGrad(const Scope& scope, const Operation& op, in AbsGrad() argument
60 grad_outputs->push_back(Mul(scope, grad_inputs[0], Sign(scope, op.input(0)))); in AbsGrad()
61 return scope.status(); in AbsGrad()
65 Status NegGrad(const Scope& scope, const Operation& op, in NegGrad() argument
69 grad_outputs->push_back(Neg(scope, grad_inputs[0])); in NegGrad()
70 return scope.status(); in NegGrad()
74 Status InvGrad(const Scope& scope, const Operation& op, in InvGrad() argument
79 internal::ReciprocalGrad(scope, op.output(0), grad_inputs[0])); in InvGrad()
[all …]
Darray_grad.cc42 Status PackGrad(const Scope& scope, const Operation& op, in PackGrad() argument
51 auto grad_op = Unstack(scope, grad_inputs[0], N, Unstack::Axis(axis)); in PackGrad()
55 return scope.status(); in PackGrad()
59 Status UnpackGrad(const Scope& scope, const Operation& op, in UnpackGrad() argument
64 grad_outputs->push_back(Stack(scope, grad_inputs, Stack::Axis(axis))); in UnpackGrad()
65 return scope.status(); in UnpackGrad()
69 Status IdentityGrad(const Scope& scope, const Operation& op, in IdentityGrad() argument
72 grad_outputs->push_back(Identity(scope, grad_inputs[0])); in IdentityGrad()
73 return scope.status(); in IdentityGrad()
77 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/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow_test.cc68 Scope scope = Scope::NewRootScope().ExitOnError(); in TEST() local
70 auto x = ops::Placeholder(scope.WithOpName("x"), DT_INT32); in TEST()
71 auto y = ops::Placeholder(scope.WithOpName("y"), DT_INT32); in TEST()
72 auto less = ops::Less(scope.WithOpName("cond/Less"), y, x); in TEST()
73 auto switch_1 = ops::Switch(scope.WithOpName("cond/Switch"), less, less); in TEST()
76 ops::Identity(scope.WithOpName("cond/Identity"), switch_1.output_true); in TEST()
78 scope.WithOpName("cond").WithControlDependencies(identity_t), 17); in TEST()
79 auto switch_2 = ops::Switch(scope.WithOpName("cond/Switch"), y, less); in TEST()
80 auto mul = ops::Multiply(scope.WithOpName("cond/Mul"), switch_2.output_true, in TEST()
84 ops::Identity(scope.WithOpName("cond/Identity"), switch_1.output_false); in TEST()
[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/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/compiler/jit/
Dencapsulate_xla_computations_pass_test.cc37 Scope scope = Scope::NewRootScope().ExitOnError(); in MakeOuterGraph() local
38 TF_EXPECT_OK(scope.graph()->AddFunctionLibrary(flib_def.ToProto())); in MakeOuterGraph()
40 auto a = ops::Placeholder(scope.WithOpName("A"), DT_INT32); in MakeOuterGraph()
41 auto b = ops::Placeholder(scope.WithOpName("B"), DT_FLOAT); in MakeOuterGraph()
42 auto c = ops::Placeholder(scope.WithOpName("C"), DT_INT32); in MakeOuterGraph()
43 auto d = ops::Placeholder(scope.WithOpName("D"), DT_FLOAT); in MakeOuterGraph()
44 auto u = ops::Placeholder(scope.WithOpName("U"), DT_RESOURCE); in MakeOuterGraph()
45 auto v = ops::Placeholder(scope.WithOpName("V"), DT_RESOURCE); in MakeOuterGraph()
46 auto w = ops::Placeholder(scope.WithOpName("W"), DT_RESOURCE); in MakeOuterGraph()
64 Node* launch = scope.graph()->AddNode(def, &status); in MakeOuterGraph()
[all …]
/external/tensorflow/tensorflow/contrib/slim/python/slim/nets/
Dinception_v3.py39 scope=None): argument
105 with variable_scope.variable_scope(scope, 'InceptionV3', [inputs]):
112 net = layers.conv2d(inputs, depth(32), [3, 3], stride=2, scope=end_point)
118 net = layers.conv2d(net, depth(32), [3, 3], scope=end_point)
125 net, depth(64), [3, 3], padding='SAME', scope=end_point)
131 net = layers_lib.max_pool2d(net, [3, 3], stride=2, scope=end_point)
137 net = layers.conv2d(net, depth(80), [1, 1], scope=end_point)
143 net = layers.conv2d(net, depth(192), [3, 3], scope=end_point)
149 net = layers_lib.max_pool2d(net, [3, 3], stride=2, scope=end_point)
165 net, depth(64), [1, 1], scope='Conv2d_0a_1x1')
[all …]
Dinception_v1.py35 def inception_v1_base(inputs, final_endpoint='Mixed_5c', scope='InceptionV1'): argument
60 with variable_scope.variable_scope(scope, 'InceptionV1', [inputs]):
67 net = layers.conv2d(inputs, 64, [7, 7], stride=2, scope=end_point)
72 net = layers_lib.max_pool2d(net, [3, 3], stride=2, scope=end_point)
77 net = layers.conv2d(net, 64, [1, 1], scope=end_point)
82 net = layers.conv2d(net, 192, [3, 3], scope=end_point)
87 net = layers_lib.max_pool2d(net, [3, 3], stride=2, scope=end_point)
95 branch_0 = layers.conv2d(net, 64, [1, 1], scope='Conv2d_0a_1x1')
97 branch_1 = layers.conv2d(net, 96, [1, 1], scope='Conv2d_0a_1x1')
99 branch_1, 128, [3, 3], scope='Conv2d_0b_3x3')
[all …]
Dinception_v2.py39 scope=None): argument
81 with variable_scope.variable_scope(scope, 'InceptionV2', [inputs]):
109 scope=end_point)
115 net = layers_lib.max_pool2d(net, [3, 3], scope=end_point, stride=2)
124 scope=end_point,
131 net = layers.conv2d(net, depth(192), [3, 3], scope=end_point)
137 net = layers_lib.max_pool2d(net, [3, 3], scope=end_point, stride=2)
147 net, depth(64), [1, 1], scope='Conv2d_0a_1x1')
153 scope='Conv2d_0a_1x1')
155 branch_1, depth(64), [3, 3], scope='Conv2d_0b_3x3')
[all …]
Dvgg.py79 scope='vgg_a'): argument
98 with variable_scope.variable_scope(scope, 'vgg_a', [inputs]) as sc:
105 inputs, 1, layers.conv2d, 64, [3, 3], scope='conv1')
106 net = layers_lib.max_pool2d(net, [2, 2], scope='pool1')
107 net = layers_lib.repeat(net, 1, layers.conv2d, 128, [3, 3], scope='conv2')
108 net = layers_lib.max_pool2d(net, [2, 2], scope='pool2')
109 net = layers_lib.repeat(net, 2, layers.conv2d, 256, [3, 3], scope='conv3')
110 net = layers_lib.max_pool2d(net, [2, 2], scope='pool3')
111 net = layers_lib.repeat(net, 2, layers.conv2d, 512, [3, 3], scope='conv4')
112 net = layers_lib.max_pool2d(net, [2, 2], scope='pool4')
[all …]
/external/tensorflow/tensorflow/go/op/
Dwrappers.go80 func FakeQuantWithMinMaxVarsPerChannelGradient(scope *Scope, gradients tf.Output, inputs tf.Output,…
81 if scope.Err() != nil {
95 op := scope.AddOperation(opspec)
131 func FakeQuantWithMinMaxVarsPerChannel(scope *Scope, inputs tf.Output, min tf.Output, max tf.Output…
132 if scope.Err() != nil {
146 op := scope.AddOperation(opspec)
186 func FakeQuantWithMinMaxVarsGradient(scope *Scope, gradients tf.Output, inputs tf.Output, min tf.Ou…
187 if scope.Err() != nil {
201 op := scope.AddOperation(opspec)
248 func FakeQuantWithMinMaxArgsGradient(scope *Scope, gradients tf.Output, inputs tf.Output, optional …
[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/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/contrib/quantize/python/
Dquantize_parameterized_test.py68 self, graph, scope, layer, activation_op_name, with_bypass, delay, argument
71 conv_scope = self._GetConvScope(scope, with_bypass)
74 if scope:
75 scope = scope + '/'
136 if delay else scope + 'Add')
139 act_quant = graph.get_operation_by_name(scope + 'act_quant/' +
144 scope + 'act_quant/FakeQuantWithMinMaxVars/ReadVariableOp',
145 scope + 'act_quant/FakeQuantWithMinMaxVars/ReadVariableOp_1',
146 scope + activation_op_name,
150 scope + 'act_quant/AssignMinEma', scope + 'act_quant/AssignMaxEma',
[all …]
/external/swiftshader/third_party/llvm-7.0/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/tensorflow/tensorflow/lite/tools/accuracy/
Drun_tflite_model_op_test.cc38 Scope scope = Scope::NewRootScope(); in TEST() local
39 TF_CHECK_OK(scope.status()); in TEST()
44 ops::Const(scope, 1.0f, {1, 8, 8, 3}), // a in TEST()
45 ops::Const(scope, 2.1f, {1, 8, 8, 3}), // b in TEST()
46 ops::Const(scope, 3.2f, {1, 8, 8, 3}), // c in TEST()
47 ops::Const(scope, 4.3f, {1, 8, 8, 3}), // d in TEST()
52 std::back_inserter(input_data), [&scope](Input model_input) { in TEST()
53 return ops::AsNodeOut(scope, model_input); in TEST()
65 scope.UpdateBuilder(&builder); in TEST()
66 scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); in TEST()
[all …]
/external/vixl/test/
Dtest-code-generation-scopes.cc58 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/contrib/gan/python/losses/python/
Dlosses_impl.py81 scope=None, argument
104 with ops.name_scope(scope, 'generator_wasserstein_loss', (
105 discriminator_gen_outputs, weights)) as scope:
110 loss, weights, scope, loss_collection, reduction)
123 scope=None, argument
149 with ops.name_scope(scope, 'discriminator_wasserstein_loss', (
151 generated_weights)) as scope:
158 discriminator_gen_outputs, generated_weights, scope,
161 discriminator_real_outputs, real_weights, scope, loss_collection=None,
183 scope=None, argument
[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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dmachine-outliner-disubprogram.ll112 ; CHECK-SAME: scope: !1,
123 ; CHECK-SAME: scope: !1,
149 !8 = distinct !DISubprogram(name: "f6", scope: !1, file: !1, line: 3, type: !9, isLocal: false, isD…
152 !11 = !DILocalVariable(name: "dog", scope: !8, file: !1, line: 4, type: !12)
154 !13 = !DILocation(line: 4, column: 16, scope: !8)
155 !14 = !DILocalVariable(name: "cat", scope: !8, file: !1, line: 5, type: !12)
156 !15 = !DILocation(line: 5, column: 16, scope: !8)
157 !16 = !DILocalVariable(name: "pangolin", scope: !8, file: !1, line: 6, type: !12)
158 !17 = !DILocation(line: 6, column: 16, scope: !8)
159 !18 = !DILocation(line: 7, column: 1, scope: !8)
[all …]
/external/llvm/test/CodeGen/ARM/
Ddebug-info-blocks.ll115 …(tag: DW_TAG_enumeration_type, line: 248, size: 32, align: 32, file: !160, scope: !0, elements: !3)
119 …enumeration_type, name: "Mode", line: 79, size: 32, align: 32, file: !160, scope: !0, elements: !7)
123 …(tag: DW_TAG_enumeration_type, line: 15, size: 32, align: 32, file: !149, scope: !0, elements: !11)
128 …(tag: DW_TAG_enumeration_type, line: 20, size: 32, align: 32, file: !150, scope: !0, elements: !16)
133 …(tag: DW_TAG_enumeration_type, line: 14, size: 32, align: 32, file: !151, scope: !0, elements: !21)
137 … DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 609, file: !152, scope: !24, type: !25)
141 !27 = !DILocalVariable(name: ".block_descriptor", line: 609, arg: 1, flags: DIFlagArtificial, scope
142 !28 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 32, scope: !0, baseType: !29)
143 … name: "__block_literal_14", line: 609, size: 256, align: 32, file: !152, scope: !24, elements: !3…
145 …DW_TAG_member, name: "__isa", line: 609, size: 32, align: 32, file: !152, scope: !24, baseType: !3…
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/
Ddebug-info-blocks.ll109 …(tag: DW_TAG_enumeration_type, line: 248, size: 32, align: 32, file: !160, scope: !0, elements: !3)
113 …enumeration_type, name: "Mode", line: 79, size: 32, align: 32, file: !160, scope: !0, elements: !7)
117 …(tag: DW_TAG_enumeration_type, line: 15, size: 32, align: 32, file: !149, scope: !0, elements: !11)
122 …(tag: DW_TAG_enumeration_type, line: 20, size: 32, align: 32, file: !150, scope: !0, elements: !16)
127 …(tag: DW_TAG_enumeration_type, line: 14, size: 32, align: 32, file: !151, scope: !0, elements: !21)
131 … DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 609, file: !152, scope: !24, type: !25)
135 !27 = !DILocalVariable(name: ".block_descriptor", line: 609, arg: 1, flags: DIFlagArtificial, scope
136 !28 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 32, scope: !0, baseType: !29)
137 … name: "__block_literal_14", line: 609, size: 256, align: 32, file: !152, scope: !24, elements: !3…
139 …DW_TAG_member, name: "__isa", line: 609, size: 32, align: 32, file: !152, scope: !24, baseType: !3…
[all …]

12345678910>>...145