Home
last modified time | relevance | path

Searched refs:ResourceVariable (Results 1 – 25 of 133) sorted by relevance

123456

/external/tensorflow/tensorflow/python/kernel_tests/
Dresource_variable_ops_test.py87 v = resource_variable_ops.ResourceVariable(1, dtype=dtypes.int64)
92 v0 = resource_variable_ops.ResourceVariable(1.0, name="a")
93 v1 = resource_variable_ops.ResourceVariable(2.0, name="a")
99 v0 = resource_variable_ops.ResourceVariable(1.0)
114 variable = resource_variable_ops.ResourceVariable(1.0, name="eager-init")
120 v = resource_variable_ops.ResourceVariable(False, name="bool_test")
126 variable = resource_variable_ops.ResourceVariable(init_value,
140 variable = resource_variable_ops.ResourceVariable(init_value,
147 v = resource_variable_ops.ResourceVariable([1.0, 2.0])
154 v = resource_variable_ops.ResourceVariable([1., 1.])
[all …]
Dcritical_section_test.py42 v = resource_variable_ops.ResourceVariable(0.0, name="v")
63 v = resource_variable_ops.ResourceVariable(0.0, name="v")
102 v = resource_variable_ops.ResourceVariable(0.0, name="v")
129 v = resource_variable_ops.ResourceVariable(0.0, name="v")
325 v = resource_variable_ops.ResourceVariable(0.0, name="v")
339 v2 = resource_variable_ops.ResourceVariable(0.0, name="v2")
352 v = resource_variable_ops.ResourceVariable(0, name="v")
374 v = resource_variable_ops.ResourceVariable(1)
/external/tensorflow/tensorflow/contrib/checkpoint/python/
Dcontainers_test.py41 x1 = resource_variable_ops.ResourceVariable(2.)
42 x2 = resource_variable_ops.ResourceVariable(3.)
43 x3 = resource_variable_ops.ResourceVariable(4.)
44 y = resource_variable_ops.ResourceVariable(5.)
59 restore_slots.x = resource_variable_ops.ResourceVariable(0.)
60 restore_slots.x_1 = resource_variable_ops.ResourceVariable(0.)
61 restore_slots.x_1_1 = resource_variable_ops.ResourceVariable(0.)
62 restore_slots.y = resource_variable_ops.ResourceVariable(0.)
78 resource_variable_ops.ResourceVariable(3.), "x"))
80 resource_variable_ops.ResourceVariable(4.), "y"))
[all …]
Dsplit_dependency_test.py50 self.combined = resource_variable_ops.ResourceVariable([0., 0., 0., 0.])
65 self.first_half = resource_variable_ops.ResourceVariable([0., 0.])
66 self.second_half = resource_variable_ops.ResourceVariable([0., 0.])
72 self.first_half = resource_variable_ops.ResourceVariable([0., 0.])
/external/tensorflow/tensorflow/contrib/eager/python/
Dsaver.py93 old_init = getattr(resource_variable_ops.ResourceVariable,
96 setattr(resource_variable_ops.ResourceVariable, "_init_from_args",
98 setattr(resource_variable_ops.ResourceVariable, "_old_init", old_init)
99 setattr(resource_variable_ops.ResourceVariable, "_map_func",
101 setattr(resource_variable_ops.ResourceVariable, "_ckpt_var_cache",
109 setattr(resource_variable_ops.ResourceVariable, "_init_from_args",
111 setattr(resource_variable_ops.ResourceVariable, "_old_init", None)
112 setattr(resource_variable_ops.ResourceVariable, "_map_func", None)
113 setattr(resource_variable_ops.ResourceVariable, "_ckpt_var_cache", None)
Dsaver_test.py42 v1 = resource_variable_ops.ResourceVariable(1.0, name='v1')
59 v1 = resource_variable_ops.ResourceVariable(1.0, name='v1')
60 v2 = resource_variable_ops.ResourceVariable(2.0, name='v1')
68 v1 = resource_variable_ops.ResourceVariable(1.0, name='v1')
77 v1 = resource_variable_ops.ResourceVariable(1.0, name='v1')
78 v2 = resource_variable_ops.ResourceVariable(1.0, name='v2')
103 v3 = resource_variable_ops.ResourceVariable(2.0, name='v3')
104 v4 = resource_variable_ops.ResourceVariable(2.0, name='v4')
111 v1 = resource_variable_ops.ResourceVariable(init_val, name='v1')
131 v = resource_variable_ops.ResourceVariable(1.0, name='v1')
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dadagrad_da_test.py37 global_step = resource_variable_ops.ResourceVariable(
39 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
40 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
73 global_step = resource_variable_ops.ResourceVariable(
75 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
76 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
104 global_step = resource_variable_ops.ResourceVariable(
106 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
107 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
135 global_step = resource_variable_ops.ResourceVariable(
[all …]
Dproximal_gradient_descent_test.py36 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0])
37 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0])
57 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0])
58 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
79 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0])
80 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
101 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0])
102 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
122 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0])
123 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0])
Dproximal_adagrad_test.py36 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0])
37 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0])
66 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0])
67 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
90 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0])
91 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
114 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0])
115 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0])
138 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0])
139 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0])
Dftrl_test.py35 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
36 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
115 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
116 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
149 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
150 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
182 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
183 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
216 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
217 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
[all …]
Deager_test.py139 v = resource_variable_ops.ResourceVariable(True)
145 v = resource_variable_ops.ResourceVariable(1.0)
151 v = resource_variable_ops.ResourceVariable(1.0)
168 v0 = resource_variable_ops.ResourceVariable(1.0)
182 var = resource_variable_ops.ResourceVariable(
266 x = resource_variable_ops.ResourceVariable(10.0)
277 embedding_matrix = resource_variable_ops.ResourceVariable(
335 v = resource_variable_ops.ResourceVariable(1.0)
346 v = resource_variable_ops.ResourceVariable(1.0)
359 v = resource_variable_ops.ResourceVariable([[1.0, 2.0], [3.0, 4.0]])
[all …]
Dadagrad_test.py36 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
37 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
63 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
64 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
91 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
92 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
Dmomentum_test.py45 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
46 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
105 var0 = resource_variable_ops.ResourceVariable([0.1, 0.2], dtype=dtype)
106 var1 = resource_variable_ops.ResourceVariable([0.3, 0.4], dtype=dtype)
112 global_step = resource_variable_ops.ResourceVariable(
130 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
131 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
Dadam_test.py69 var0 = resource_variable_ops.ResourceVariable(var0_np)
70 var1 = resource_variable_ops.ResourceVariable(var1_np)
112 var0 = resource_variable_ops.ResourceVariable(var0_np)
113 var1 = resource_variable_ops.ResourceVariable(var1_np)
155 var0 = resource_variable_ops.ResourceVariable(var0_np)
156 var1 = resource_variable_ops.ResourceVariable(var1_np)
/external/tensorflow/tensorflow/python/training/
Doptimizer_test.py42 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
44 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
50 global_step = resource_variable_ops.ResourceVariable(
122 var0 = resource_variable_ops.ResourceVariable(
124 var1 = resource_variable_ops.ResourceVariable(
137 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
139 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
155 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
157 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
171 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
[all …]
Dgradient_descent_test.py67 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
68 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
93 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
94 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
120 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
121 var1 = resource_variable_ops.ResourceVariable([3.0], dtype=dtype)
147 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
148 var1 = resource_variable_ops.ResourceVariable([3.0], dtype=dtype)
265 self.v = resource_variable_ops.ResourceVariable(1.0)
/external/tensorflow/tensorflow/contrib/optimizer_v2/
Doptimizer_v2_test.py41 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
42 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
47 global_step = resource_variable_ops.ResourceVariable(
117 var0 = resource_variable_ops.ResourceVariable(
119 var1 = resource_variable_ops.ResourceVariable(
130 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
131 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
144 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
145 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
156 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
[all …]
/external/tensorflow/tensorflow/python/framework/
Dauto_control_deps_test.py44 v = resource_variable_ops.ResourceVariable(1.0)
56 v = resource_variable_ops.ResourceVariable(1.0)
78 v = resource_variable_ops.ResourceVariable(1.0)
102 v = resource_variable_ops.ResourceVariable(1.0)
137 v = resource_variable_ops.ResourceVariable(1.0)
158 v = resource_variable_ops.ResourceVariable(1.0)
180 v = resource_variable_ops.ResourceVariable(1.0)
216 v = resource_variable_ops.ResourceVariable(1.0)
235 self.v = resource_variable_ops.ResourceVariable(1.0)
246 v = resource_variable_ops.ResourceVariable(1.0)
[all …]
/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Doptimizer_v2_test.py64 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
65 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
84 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
85 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
152 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
153 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
164 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
165 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
177 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
178 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
[all …]
Dadagrad_test.py75 var0 = resource_variable_ops.ResourceVariable(var0_np)
76 var1 = resource_variable_ops.ResourceVariable(var1_np)
127 var0 = resource_variable_ops.ResourceVariable(var0_np)
128 var1 = resource_variable_ops.ResourceVariable(var1_np)
171 var0 = resource_variable_ops.ResourceVariable(var0_np)
172 var1 = resource_variable_ops.ResourceVariable(var1_np)
214 var0 = resource_variable_ops.ResourceVariable(
241 var0 = resource_variable_ops.ResourceVariable(var0_np)
242 var1 = resource_variable_ops.ResourceVariable(var1_np)
275 var0 = resource_variable_ops.ResourceVariable(var0_np)
[all …]
Dgradient_descent_test.py45 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
46 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
61 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
62 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
119 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
120 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
138 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
139 var1 = resource_variable_ops.ResourceVariable([3.0], dtype=dtype)
155 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
156 var1 = resource_variable_ops.ResourceVariable([3.0], dtype=dtype)
[all …]
/external/tensorflow/tensorflow/contrib/opt/python/training/
Dlazy_adam_gs_optimizer_test.py70 global_step = resource_variable_ops.ResourceVariable(
72 var0 = resource_variable_ops.ResourceVariable(var0_np)
73 var1 = resource_variable_ops.ResourceVariable(var1_np)
119 global_step = resource_variable_ops.ResourceVariable(
121 var = resource_variable_ops.ResourceVariable([[1.0], [2.0]])
139 repeated_index_global_step = resource_variable_ops.ResourceVariable(
141 aggregated_global_step = resource_variable_ops.ResourceVariable(
143 repeated_index_update_var = resource_variable_ops.ResourceVariable(
145 aggregated_update_var = resource_variable_ops.ResourceVariable(
197 global_step = resource_variable_ops.ResourceVariable(
[all …]
/external/tensorflow/tensorflow/python/training/saving/
Dfunctional_saver_test.py34 v1 = resource_variable_ops.ResourceVariable(2.)
43 v2 = resource_variable_ops.ResourceVariable(3.)
50 v1 = resource_variable_ops.ResourceVariable(2.)
71 v2 = resource_variable_ops.ResourceVariable(3.)
/external/tensorflow/tensorflow/python/eager/
Dlift_to_graph_test.py31 v1 = resource_variable_ops.ResourceVariable(1.0)
32 v2 = resource_variable_ops.ResourceVariable(2.0)
33 v3 = resource_variable_ops.ResourceVariable(3.0)
Dbackprop_test.py87 x = resource_variable_ops.ResourceVariable(
101 v = resource_variable_ops.ResourceVariable(1.0)
207 embedding = resource_variable_ops.ResourceVariable(
237 v0 = resource_variable_ops.ResourceVariable(1.0)
238 v1 = resource_variable_ops.ResourceVariable(2.0)
320 v0 = resource_variable_ops.ResourceVariable(1.0)
346 x = resource_variable_ops.ResourceVariable(1.0)
353 x = resource_variable_ops.ResourceVariable(1.0)
365 v = resource_variable_ops.ResourceVariable(1.0)
372 x = [resource_variable_ops.ResourceVariable(2.),
[all …]

123456