HomeSort by relevance Sort by last modified time
    Searched refs:ResourceVariable (Results 1 - 25 of 68) sorted by null

1 2 3

  /external/tensorflow/tensorflow/contrib/eager/python/
saver.py 93 old_init = getattr(resource_variable_ops.ResourceVariable,
95 assert old_init, "ResourceVariable misses _init_from_args method."
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
    [all...]
saver_test.py 46 v1 = resource_variable_ops.ResourceVariable(1.0, name='v1')
68 v1_first_graph = resource_variable_ops.ResourceVariable(1.0, name='v1')
70 v1_second_graph = resource_variable_ops.ResourceVariable(2.0, name='v1')
78 v1 = resource_variable_ops.ResourceVariable(1.0, name='v1')
87 v1 = resource_variable_ops.ResourceVariable(1.0, name='v1')
88 v2 = resource_variable_ops.ResourceVariable(1.0, name='v2')
114 v3 = resource_variable_ops.ResourceVariable(2.0, name='v3')
115 v4 = resource_variable_ops.ResourceVariable(2.0, name='v4')
122 v1 = resource_variable_ops.ResourceVariable(init_val, name='v1')
143 v = resource_variable_ops.ResourceVariable(1.0, name='v1'
    [all...]
  /external/tensorflow/tensorflow/python/kernel_tests/
resource_variable_ops_test.py 71 v = resource_variable_ops.ResourceVariable(1, dtype=dtypes.int64)
76 v0 = resource_variable_ops.ResourceVariable(1.0, name="a")
77 v1 = resource_variable_ops.ResourceVariable(2.0, name="a")
83 v0 = resource_variable_ops.ResourceVariable(1.0)
97 variable = resource_variable_ops.ResourceVariable(1.0, name="eager-init")
103 v = resource_variable_ops.ResourceVariable(False, name="bool_test")
211 v = resource_variable_ops.ResourceVariable(
217 v = resource_variable_ops.ResourceVariable(
223 v = resource_variable_ops.ResourceVariable(
231 resource_variable_ops.ResourceVariable(
    [all...]
garbage_collection_test.py 37 resource_variable_ops.ResourceVariable(1.0, name="a")
  /external/tensorflow/tensorflow/compiler/tests/
adagrad_test.py 36 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
37 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)
87 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
88 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
rmsprop_test.py 36 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
37 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
momentum_test.py 45 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
46 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
99 var0 = resource_variable_ops.ResourceVariable([0.1, 0.2], dtype=dtype)
100 var1 = resource_variable_ops.ResourceVariable([0.3, 0.4], dtype=dtype)
106 global_step = resource_variable_ops.ResourceVariable(
124 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
125 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
ftrl_test.py 36 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
37 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
116 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
117 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
144 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
145 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
172 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
173 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype)
200 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
201 var1 = resource_variable_ops.ResourceVariable([4.0, 3.0], dtype=dtype
    [all...]
adam_test.py 65 var0 = resource_variable_ops.ResourceVariable(var0_np)
66 var1 = resource_variable_ops.ResourceVariable(var1_np)
104 var0 = resource_variable_ops.ResourceVariable(var0_np)
105 var1 = resource_variable_ops.ResourceVariable(var1_np)
143 var0 = resource_variable_ops.ResourceVariable(var0_np)
144 var1 = resource_variable_ops.ResourceVariable(var1_np)
variable_ops_test.py 48 v = resource_variable_ops.ResourceVariable(init)
64 v = resource_variable_ops.ResourceVariable(init)
75 v = resource_variable_ops.ResourceVariable(init)
87 v = resource_variable_ops.ResourceVariable(init)
101 v = resource_variable_ops.ResourceVariable(init)
114 v = resource_variable_ops.ResourceVariable(init)
207 var = resource_variable_ops.ResourceVariable(x)
254 v = resource_variable_ops.ResourceVariable([1, 2])
  /external/tensorflow/tensorflow/python/training/
optimizer_test.py 42 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(
120 var0 = resource_variable_ops.ResourceVariable(
122 var1 = resource_variable_ops.ResourceVariable(
135 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
137 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
153 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
155 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
169 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype
    [all...]
gradient_descent_test.py 61 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
62 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
86 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
87 var1 = resource_variable_ops.ResourceVariable([3.0], dtype=dtype)
112 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
113 var1 = resource_variable_ops.ResourceVariable([3.0], dtype=dtype)
adagrad_da_test.py 40 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
41 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
85 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
86 global_step = resource_variable_ops.ResourceVariable(
adadelta_test.py 44 var0 = resource_variable_ops.ResourceVariable(
46 var1 = resource_variable_ops.ResourceVariable(
150 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
adagrad_test.py 41 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
42 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
77 var0 = resource_variable_ops.ResourceVariable(
181 var_repeated = resource_variable_ops.ResourceVariable(
185 var_aggregated = resource_variable_ops.ResourceVariable(
proximal_gradient_descent_test.py 41 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0])
42 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0])
98 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
momentum_test.py 50 var0 = resource_variable_ops.ResourceVariable(
52 var1 = resource_variable_ops.ResourceVariable(
141 var0 = resource_variable_ops.ResourceVariable(
143 var1 = resource_variable_ops.ResourceVariable(
156 var2 = resource_variable_ops.ResourceVariable(
158 var3 = resource_variable_ops.ResourceVariable(
240 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
259 var0 = resource_variable_ops.ResourceVariable(array_ops.ones([2, 2]))
  /external/tensorflow/tensorflow/python/eager/
function_test.py 78 v = resource_variable_ops.ResourceVariable(1.0, name='v')
139 v = resource_variable_ops.ResourceVariable(1.0, name='v')
165 v = resource_variable_ops.ResourceVariable(1.0)
174 v = resource_variable_ops.ResourceVariable(1.0)
184 v = resource_variable_ops.ResourceVariable([[1, 2], [3, 4]])
196 v = resource_variable_ops.ResourceVariable([[1, 2], [3, 4]])
220 v = resource_variable_ops.ResourceVariable(1.0)
229 v = resource_variable_ops.ResourceVariable(1.0)
245 self.v = resource_variable_ops.ResourceVariable(1.0)
347 three = resource_variable_ops.ResourceVariable(3.0, name='v'
    [all...]
backprop_test.py 85 x = resource_variable_ops.ResourceVariable(
126 embedding = resource_variable_ops.ResourceVariable(
139 # TODO(ashankar,apassos): Change to ResourceVariable.
157 v0 = resource_variable_ops.ResourceVariable(1.0)
158 v1 = resource_variable_ops.ResourceVariable(2.0)
274 v = resource_variable_ops.ResourceVariable(
325 v = resource_variable_ops.ResourceVariable(
396 v = resource_variable_ops.ResourceVariable(1.0, name='v')
531 x = resource_variable_ops.ResourceVariable(
586 v = resource_variable_ops.ResourceVariable(
    [all...]
  /external/tensorflow/tensorflow/contrib/framework/python/ops/
critical_section_test.py 39 v = resource_variable_ops.ResourceVariable(0.0, name="v")
58 v = resource_variable_ops.ResourceVariable(0.0, name="v")
76 v = resource_variable_ops.ResourceVariable(0.0, name="v")
125 v = resource_variable_ops.ResourceVariable(0.0, name="v")
139 v2 = resource_variable_ops.ResourceVariable(0.0, name="v2")
accumulate_n_v2_eager_test.py 62 resource_variable_ops.ResourceVariable(10.0 * np.random.random(),
  /external/tensorflow/tensorflow/contrib/opt/python/training/
addsign_test.py 78 var0 = resource_variable_ops.ResourceVariable(var0_np)
79 var1 = resource_variable_ops.ResourceVariable(var1_np)
80 global_step = resource_variable_ops.ResourceVariable(
181 var0 = resource_variable_ops.ResourceVariable(var0_np)
182 var1 = resource_variable_ops.ResourceVariable(var1_np)
183 global_step = resource_variable_ops.ResourceVariable(
powersign_test.py 79 var0 = resource_variable_ops.ResourceVariable(var0_np)
80 var1 = resource_variable_ops.ResourceVariable(var1_np)
81 global_step = resource_variable_ops.ResourceVariable(
186 var0 = resource_variable_ops.ResourceVariable(var0_np)
187 var1 = resource_variable_ops.ResourceVariable(var1_np)
188 global_step = resource_variable_ops.ResourceVariable(
nadam_optimizer_test.py 65 var0 = resource_variable_ops.ResourceVariable(var0_np)
66 var1 = resource_variable_ops.ResourceVariable(var1_np)
118 var0 = resource_variable_ops.ResourceVariable(var0_np)
119 var1 = resource_variable_ops.ResourceVariable(var1_np)
  /external/tensorflow/tensorflow/python/ops/
resource_variable_ops.py 58 # We do not want two distinct ResourceVariable objects for the same
152 class ResourceVariable(variables.Variable):
157 A `ResourceVariable` allows you to maintain state across subsequent calls to
160 The `ResourceVariable` constructor requires an initial value for the variable,
166 Just like any `Tensor`, variables created with `ResourceVariable()` can be
171 Unlike tf.Variable, a tf.ResourceVariable has well-defined semantics. Each
172 usage of a ResourceVariable in a TensorFlow graph adds a read_value operation
179 For example, if there is more than one assignment to a ResourceVariable in
183 can cause tf.Variable and tf.ResourceVariable to behave differently:
186 a = tf.ResourceVariable(1.0
    [all...]

Completed in 540 milliseconds

1 2 3