Home
last modified time | relevance | path

Searched refs:var1 (Results 1 – 25 of 233) sorted by relevance

12345678910

/external/clang/test/SemaCXX/
Dwarn-consumed-analysis.cpp84 ConsumableClass<int> var1 = ConsumableClass<int>();
90 …*var1; // expected-warning {{invalid invocation of method 'operator*' on object 'var1' while it is…
98 var0 = var1;
103 *var1;
129 ConsumableClass<int> var1(42);
132 *var1;
134 var0 = static_cast<ConsumableClass<int>&&>(var1);
137 …*var1; // expected-warning {{invalid invocation of method 'operator*' on object 'var1' while it is…
175 ConsumableClass<int> var0, var1, var2;
177 if (var0 && var1) {
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dftrl_test.py32 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
36 return var0, var1, grads0, grads1
39 var0, var1, grads0, grads1 = self.initVariableAndGradient(dtype)
46 ftrl_update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
50 self.assertAllClose([0.0, 0.0], self.evaluate(var1))
56 return self.evaluate(var0), self.evaluate(var1)
59 var0, var1, grads0, grads1 = self.initVariableAndGradient(dtype)
61 adagrad_update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
65 self.assertAllClose([0.0, 0.0], self.evaluate(var1))
71 return self.evaluate(var0), self.evaluate(var1)
[all …]
Dproximal_gradient_descent_test.py33 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0])
38 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
42 self.assertAllClose([0.0, 0.0], self.evaluate(var1))
49 self.assertAllClose(np.array([-0.09, -0.18]), self.evaluate(var1))
54 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
60 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
64 self.assertAllClose([4.0, 3.0], self.evaluate(var1))
71 self.assertAllClose(np.array([3.91, 2.82]), self.evaluate(var1))
76 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
82 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
[all …]
Dproximal_adagrad_test.py33 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0])
41 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
45 self.assertAllClose([0.0, 0.0], self.evaluate(var1))
54 np.array([-0.28432083, -0.56694895]), self.evaluate(var1))
57 self.assertStartsWith(opt_vars[1].name, var1._shared_name)
63 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
72 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
76 self.assertAllClose([4.0, 3.0], self.evaluate(var1))
82 self.assertAllClose(np.array([3.715679, 2.433051]), self.evaluate(var1))
87 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
[all …]
Dadagrad_test.py33 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
38 zip([grads0, grads1], [var0, var1]))
42 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
53 self.evaluate(var1),
60 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
66 zip([grads0, grads1], [var0, var1]))
70 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
81 self.evaluate(var1),
88 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
95 zip([grads0, grads1], [var0, var1]))
[all …]
Dadagrad_da_test.py36 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
46 zip([grads0, grads1], [var0, var1]), global_step=global_step)
50 self.assertAllClose([0.0, 0.0], self.evaluate(var1))
64 np.array([-0.094821, -0.189358]), self.evaluate(var1))
72 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
83 zip([grads0, grads1], [var0, var1]), global_step=global_step)
87 self.assertAllCloseAccordingToType([4.0, 3.0], self.evaluate(var1))
95 np.array([-0.094821, -0.189358]), self.evaluate(var1))
103 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
114 zip([grads0, grads1], [var0, var1]), global_step=global_step)
[all …]
Dmomentum_test.py42 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
48 zip([grads0, grads1], [var0, var1]))
55 slot1 = mom_opt.get_slot(var1, "momentum")
56 self.assertEqual(slot1.get_shape(), var1.get_shape())
61 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
76 self.evaluate(var1))
96 ]), self.evaluate(var1))
102 var1 = resource_variable_ops.ResourceVariable([0.3, 0.4], dtype=dtype)
107 cost = 0.4 * var0 * var0 + 0.9 * var1
112 opt_op = mom_op.minimize(cost, global_step, [var0, var1])
[all …]
Dadadelta_test.py47 var1 = resource_variable_ops.ResourceVariable(
61 zip([grads, grads], [var0, var1]))
66 self.assertStartsWith(opt_vars[2].name, var1._shared_name)
67 self.assertStartsWith(opt_vars[3].name, var1._shared_name)
82 slot[1] = adadelta_opt.get_slot(var1, "accum")
83 self.assertEqual(slot[1].get_shape(), var1.get_shape())
86 slot_update[1] = adadelta_opt.get_slot(var1, "accum_update")
87 self.assertEqual(slot_update[1].get_shape(), var1.get_shape())
92 self.assertAllClose(var1_init, self.evaluate(var1))
133 self.evaluate(var1),
Dadam_test.py66 var1 = resource_variable_ops.ResourceVariable(var1_np)
70 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
75 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
91 self.assertAllCloseAccordingToType(var1_np, self.evaluate(var1))
109 var1 = resource_variable_ops.ResourceVariable(var1_np)
113 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
118 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
134 self.assertAllCloseAccordingToType(var1_np, self.evaluate(var1))
152 var1 = resource_variable_ops.ResourceVariable(var1_np)
156 update1 = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
[all …]
/external/tensorflow/tensorflow/python/training/
Doptimizer_test.py44 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
47 return 5 * var0 + 3 * var1 # pylint: disable=cell-var-from-loop
57 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
59 opt_op = sgd_op.minimize(loss, global_step, [var0, var1])
63 self.assertAllClose([-6., -5.], self.evaluate(var1))
70 var1 = variables.Variable([3.0, 4.0], dtype=dtype)
71 cost = 5 * var0 + 3 * var1
77 global_step, [var0, var1],
84 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
89 self.assertAllClose([-6., -5.], self.evaluate(var1))
[all …]
Dgradient_descent_test.py40 var1 = variables.Variable([3.0, 4.0], dtype=dtype)
45 zip([grads0, grads1], [var0, var1]))
49 self.assertAllCloseAccordingToType([3.0, 4.0], self.evaluate(var1))
56 self.evaluate(var1))
64 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
68 zip([grads0, grads1], [var0, var1]))
73 resources.initialize_resources([var0, var1]).run()
76 self.assertAllCloseAccordingToType([3.0, 4.0], self.evaluate(var1))
83 self.evaluate(var1))
90 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
[all …]
Dftrl_test.py43 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0],
47 var1 = variables.Variable([0.0, 0.0], dtype=dtype)
55 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
58 v0_val, v1_val = self.evaluate([var0, var1])
66 v0_val, v1_val = self.evaluate([var0, var1])
84 var1 = variables.Variable([4.0, 3.0], dtype=dtype)
93 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
96 v0_val, v1_val = self.evaluate([var0, var1])
103 v0_val, v1_val = self.evaluate([var0, var1])
136 var1 = variables.Variable([4.0, 3.0], dtype=dtype)
[all …]
Dproximal_adagrad_test.py38 var1 = variables.Variable([0.0, 0.0])
46 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
49 v0_val, v1_val = self.evaluate([var0, var1])
57 v0_val, v1_val = self.evaluate([var0, var1])
62 self.assertStartsWith(opt_vars[1].name, var1._shared_name)
75 var1 = variables.Variable([4.0, 3.0])
84 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
87 v0_val, v1_val = self.evaluate([var0, var1])
94 v0_val, v1_val = self.evaluate([var0, var1])
121 var1 = variables.Variable([4.0, 3.0])
[all …]
Dmomentum_test.py49 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0],
54 var1 = variables.Variable([3.0, 4.0], dtype=dtype)
64 mom_update = mom_opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
70 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
76 slot1 = mom_opt.get_slot(var1, "momentum")
77 self.assertEqual(slot1.get_shape(), var1.get_shape())
96 self.evaluate(var1))
99 mom_opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
119 ]), self.evaluate(var1))
139 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0],
[all …]
Dproximal_gradient_descent_test.py39 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0])
42 var1 = variables.Variable([0.0, 0.0])
47 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
50 v0_val, v1_val = self.evaluate([var0, var1])
58 v0_val, v1_val = self.evaluate([var0, var1])
71 var1 = variables.Variable([4.0, 3.0])
77 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
80 v0_val, v1_val = self.evaluate([var0, var1])
88 v0_val, v1_val = self.evaluate([var0, var1])
114 var1 = variables.Variable([4.0, 3.0])
[all …]
Dadagrad_da_test.py39 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
42 var1 = variables.Variable([0.0, 0.0], dtype=dtype)
52 zip([grads0, grads1], [var0, var1]), global_step=global_step)
55 v0_val, v1_val = self.evaluate([var0, var1])
62 v0_val, v1_val = self.evaluate([var0, var1])
107 var1 = variables.Variable([4.0, 3.0], dtype=dtype)
118 zip([grads0, grads1], [var0, var1]), global_step=global_step)
121 v0_val, v1_val = self.evaluate([var0, var1])
128 v0_val, v1_val = self.evaluate([var0, var1])
139 var1 = variables.Variable([4.0, 3.0], dtype=dtype)
[all …]
Drmsprop_test.py102 var1 = resource_variable_ops.ResourceVariable(var1_np)
105 var1 = variables.Variable(var1_np)
115 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
120 mg1 = opt.get_slot(var1, "mg")
124 rms1 = opt.get_slot(var1, "rms")
128 mom1 = opt.get_slot(var1, "momentum")
140 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
162 self.assertAllCloseAccordingToType(var1_np, self.evaluate(var1))
225 var1 = variables.Variable(var1_np)
240 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
[all …]
Dadagrad_test.py43 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
46 var1 = variables.Variable([3.0, 4.0], dtype=dtype)
59 zip([grads0, grads1], [var0, var1]))
63 v0_val, v1_val = self.evaluate([var0, var1])
72 ada_opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
75 v0_val, v1_val = self.evaluate([var0, var1])
122 var1 = variables.Variable([3.0, 4.0], dtype=dtype)
128 zip([grads0, grads1], [var0, var1]))
132 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
142 self.evaluate(var1))
[all …]
Dadadelta_test.py43 var1 = resource_variable_ops.ResourceVariable(
47 var1 = variables.Variable(var1_init, dtype=dtype)
67 zip([grads, grads], [var0, var1]))
76 self.assertStartsWith(opt_vars[2].name, var1._shared_name)
77 self.assertStartsWith(opt_vars[3].name, var1._shared_name)
92 slot[1] = adadelta_opt.get_slot(var1, "accum")
93 self.assertEqual(slot[1].get_shape(), var1.get_shape())
96 slot_update[1] = adadelta_opt.get_slot(var1, "accum_update")
97 self.assertEqual(slot_update[1].get_shape(), var1.get_shape())
102 self.assertAllClose(var1_init, self.evaluate(var1))
[all …]
Dadam_test.py67 var1 = resource_variable_ops.ResourceVariable(var1_np)
70 var1 = variables.RefVariable(var1_np)
80 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
85 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
101 self.assertAllCloseAccordingToType(var1_np, self.evaluate(var1))
172 var1 = resource_variable_ops.ResourceVariable(
176 var1 = variables.RefVariable(var1_np)
191 update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
214 self.assertAllClose([3.0, 4.0], self.evaluate(var1))
223 opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
[all …]
/external/boringssl/src/crypto/fipsmodule/ec/asm/
Dp256_beeu-armv8-asm.pl151 my ($var0, $var1, $var2, $var3, $var4) = @_;
157 adcs $var1, $var1, $n1
166 extr $var0, $var1, $var0, #1
167 extr $var1, $var2, $var1, #1
197 my ($var0, $var1, $var2, $var3) = @_;
201 lsl $t1, $var1, $t0
203 lsr $var1, $var1, $shift
211 orr $var1, $var1, $t2
/external/cronet/third_party/boringssl/src/crypto/fipsmodule/ec/asm/
Dp256_beeu-armv8-asm.pl151 my ($var0, $var1, $var2, $var3, $var4) = @_;
157 adcs $var1, $var1, $n1
166 extr $var0, $var1, $var0, #1
167 extr $var1, $var2, $var1, #1
197 my ($var0, $var1, $var2, $var3) = @_;
201 lsl $t1, $var1, $t0
203 lsr $var1, $var1, $shift
211 orr $var1, $var1, $t2
/external/deqp/external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/spirv1p4/opptrnotequal/
Ddifferent_ssbos_not_equal.amber10 OpEntryPoint GLCompute %main "main" %var1 %var2 %var3 %out_var
15 OpDecorate %var1 DescriptorSet 0
16 OpDecorate %var1 Binding 0
33 %var1 = OpVariable %ptr_ssbo_struct StorageBuffer
41 %var1_rta_gep = OpAccessChain %ptr_ssbo_rta %var1 %int_0
42 %var1_int_gep = OpAccessChain %ptr_ssbo_int %var1 %int_0 %int_0
47 ; var1 vs var2
48 %v1_neq_v2 = OpPtrNotEqual %bool %var1 %var2
63 ; var1 vs var3
64 %v1_neq_v3 = OpPtrNotEqual %bool %var1 %var3
[all …]
Dsimple_variable_pointers_ptr_not_equal.amber8 OpEntryPoint GLCompute %main "main" %var1 %var2 %out_var
22 OpDecorate %var1 DescriptorSet 0
23 OpDecorate %var1 Binding 0
47 %var1 = OpVariable %ptr_buffer_struct StorageBuffer
55 %var1_float_1 = OpAccessChain %ptr_buffer_float %var1 %int_2
57 %var1_float_2 = OpAccessChain %ptr_buffer_float %var1 %int_3
63 %var1_mat_1 = OpAccessChain %ptr_mat4v4 %var1 %int_0
65 %var1_mat_2 = OpAccessChain %ptr_mat4v4 %var1 %int_1
67 %var1_mat_1_0 = OpAccessChain %ptr_v4 %var1 %int_0 %int_0
69 %var1_mat_1_1 = OpAccessChain %ptr_v4 %var1 %int_0 %int_1
[all …]
/external/deqp/external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/spirv1p4/opptrequal/
Ddifferent_ssbos_equal.amber10 OpEntryPoint GLCompute %main "main" %var1 %var2 %var3 %out_var
15 OpDecorate %var1 DescriptorSet 0
16 OpDecorate %var1 Binding 0
33 %var1 = OpVariable %ptr_ssbo_struct StorageBuffer
41 %var1_rta_gep = OpAccessChain %ptr_ssbo_rta %var1 %int_0
42 %var1_int_gep = OpAccessChain %ptr_ssbo_int %var1 %int_0 %int_0
47 ; var1 vs var2
48 %v1_eq_v2 = OpPtrEqual %bool %var1 %var2
63 ; var1 vs var3
64 %v1_eq_v3 = OpPtrEqual %bool %var1 %var3
[all …]

12345678910