Home
last modified time | relevance | path

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

1234

/external/tensorflow/tensorflow/lite/experimental/resource/
Dresource_variable.h31 class ResourceVariable : public ResourceBase {
33 ResourceVariable();
34 ResourceVariable(ResourceVariable&& other);
36 ResourceVariable(const ResourceVariable&) = delete;
37 ResourceVariable& operator=(const ResourceVariable&) = delete;
39 ~ResourceVariable() override;
69 ResourceVariable* GetResourceVariable(ResourceMap* resources, int resource_id);
Dresource_variable.cc26 ResourceVariable::ResourceVariable() { in ResourceVariable() function in tflite::resource::ResourceVariable
30 ResourceVariable::ResourceVariable(ResourceVariable&& other) { in ResourceVariable() function in tflite::resource::ResourceVariable
38 ResourceVariable::~ResourceVariable() { in ~ResourceVariable()
47 TfLiteStatus ResourceVariable::AssignFrom(const TfLiteTensor* tensor) { in AssignFrom()
88 std::unique_ptr<ResourceVariable>(new ResourceVariable())); in CreateResourceVariableIfNotAvailable()
91 ResourceVariable* GetResourceVariable(ResourceMap* resources, int resource_id) { in GetResourceVariable()
94 return static_cast<ResourceVariable*>(it->second.get()); in GetResourceVariable()
Dresource_variable_test.cc42 ResourceVariable var; in TEST()
68 ResourceVariable var; in TEST()
92 ResourceVariable var; in TEST()
132 ResourceVariable var; in TEST()
/external/tensorflow/tensorflow/python/kernel_tests/
Dresource_variable_ops_test.py91 v = resource_variable_ops.ResourceVariable(1, dtype=dtypes.int64)
96 v0 = resource_variable_ops.ResourceVariable(1.0, name="a")
97 v1 = resource_variable_ops.ResourceVariable(2.0, name="a")
103 v0 = resource_variable_ops.ResourceVariable(1.0)
119 variable = resource_variable_ops.ResourceVariable(1.0, name="eager-init")
124 var1 = resource_variable_ops.ResourceVariable(1.0, name="var1")
125 var2 = resource_variable_ops.ResourceVariable(var1.initialized_value(),
131 v = resource_variable_ops.ResourceVariable(False, name="bool_test")
137 variable = resource_variable_ops.ResourceVariable(
162 variable = resource_variable_ops.ResourceVariable(init_value,
[all …]
Dcritical_section_test.py48 v = resource_variable_ops.ResourceVariable(0.0, name="v")
74 v = resource_variable_ops.ResourceVariable(0.0, name="v")
113 v = resource_variable_ops.ResourceVariable(0.0, name="v")
140 v = resource_variable_ops.ResourceVariable(0.0, name="v")
332 v = resource_variable_ops.ResourceVariable(0.0, name="v")
346 v2 = resource_variable_ops.ResourceVariable(0.0, name="v2")
359 v = resource_variable_ops.ResourceVariable(0, name="v")
381 v = resource_variable_ops.ResourceVariable(1)
/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)
347 w = resource_variable_ops.ResourceVariable(0.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)
Dplaceholder_test.py32 v = resource_variable_ops.ResourceVariable(4.0)
40 v = resource_variable_ops.ResourceVariable(4.0)
Dvariable_ops_test.py49 v = resource_variable_ops.ResourceVariable(zeros)
62 v = resource_variable_ops.ResourceVariable(init)
76 v = resource_variable_ops.ResourceVariable(init)
87 v = resource_variable_ops.ResourceVariable(init)
99 v = resource_variable_ops.ResourceVariable(init)
113 v = resource_variable_ops.ResourceVariable(init)
126 v = resource_variable_ops.ResourceVariable(init)
207 v = resource_variable_ops.ResourceVariable(init)
438 var = resource_variable_ops.ResourceVariable(x)
491 v = resource_variable_ops.ResourceVariable([1, 2])
/external/tensorflow/tensorflow/python/training/
Doptimizer_test.py46 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
48 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
54 global_step = resource_variable_ops.ResourceVariable(
126 var0 = resource_variable_ops.ResourceVariable(
128 var1 = resource_variable_ops.ResourceVariable(
141 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
143 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
159 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
161 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype,
175 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype,
[all …]
Dgradient_descent_test.py66 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
67 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
92 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
93 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], dtype=dtype)
146 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
147 var1 = resource_variable_ops.ResourceVariable([3.0], dtype=dtype)
264 self.v = resource_variable_ops.ResourceVariable(1.0)
Dadagrad_da_test.py42 var0 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
43 var1 = resource_variable_ops.ResourceVariable([0.0, 0.0], dtype=dtype)
88 var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype)
89 global_step = resource_variable_ops.ResourceVariable(
Dadam_test.py69 var0 = resource_variable_ops.ResourceVariable(var0_np)
70 var1 = resource_variable_ops.ResourceVariable(var1_np)
173 var0 = resource_variable_ops.ResourceVariable(
175 var1 = resource_variable_ops.ResourceVariable(
373 v1 = resource_variable_ops.ResourceVariable(1.)
374 v2 = resource_variable_ops.ResourceVariable(1.)
391 var0 = resource_variable_ops.ResourceVariable(var0_np, name="var0")
392 var1 = resource_variable_ops.ResourceVariable(var1_np, name="var1")
/external/tensorflow/tensorflow/python/training/saving/
Dfunctional_saver_test.py58 v1 = resource_variable_ops.ResourceVariable(2.)
69 v2 = resource_variable_ops.ResourceVariable(3.)
78 v1 = resource_variable_ops.ResourceVariable(2.)
89 v2 = resource_variable_ops.ResourceVariable(3.)
104 v1 = resource_variable_ops.ResourceVariable(2.)
125 v2 = resource_variable_ops.ResourceVariable(3.)
138 v0 = resource_variable_ops.ResourceVariable(0.)
140 v1 = resource_variable_ops.ResourceVariable(1.)
142 v2 = resource_variable_ops.ResourceVariable(2.)
163 v0 = resource_variable_ops.ResourceVariable(0.)
[all …]
/external/tensorflow/tensorflow/python/training/tracking/
Ddata_structures_test.py76 resource_variable_ops.ResourceVariable)
79 v = resource_variable_ops.ResourceVariable([1.])
91 v2 = resource_variable_ops.ResourceVariable(1., trainable=False)
98 v1 = resource_variable_ops.ResourceVariable(1.)
99 v2 = resource_variable_ops.ResourceVariable(1.)
100 v3 = resource_variable_ops.ResourceVariable(1.)
109 v1 = resource_variable_ops.ResourceVariable(1.)
110 v2 = resource_variable_ops.ResourceVariable(1.)
111 v3 = resource_variable_ops.ResourceVariable(1.)
112 v4 = resource_variable_ops.ResourceVariable(1.)
[all …]
/external/tensorflow/tensorflow/python/framework/
Dauto_control_deps_test.py46 v = resource_variable_ops.ResourceVariable(1.0)
57 v = resource_variable_ops.ResourceVariable(1.0)
70 v = resource_variable_ops.ResourceVariable(1.0)
89 v = resource_variable_ops.ResourceVariable(1.0)
107 v = resource_variable_ops.ResourceVariable(1.0)
118 v = resource_variable_ops.ResourceVariable(1.0)
169 v = resource_variable_ops.ResourceVariable(1.0)
178 v = resource_variable_ops.ResourceVariable(1.0)
369 v = resource_variable_ops.ResourceVariable(1.0)
569 v = resource_variable_ops.ResourceVariable(1.0)
[all …]
/external/tensorflow/tensorflow/python/distribute/
Dpacked_distributed_variable_test.py44 v0 = resource_variable_ops.ResourceVariable(1.0, name='var0')
46 v1 = resource_variable_ops.ResourceVariable(2.0, name='var1')
81 v0 = resource_variable_ops.ResourceVariable(1.0)
83 v1 = resource_variable_ops.ResourceVariable(2.0)
/external/tensorflow/tensorflow/python/eager/
Dlift_to_graph_test.py35 v1 = resource_variable_ops.ResourceVariable(1.0)
36 v2 = resource_variable_ops.ResourceVariable(2.0)
37 v3 = resource_variable_ops.ResourceVariable(3.0)
Dbackprop_test.py121 x = resource_variable_ops.ResourceVariable(
162 v = resource_variable_ops.ResourceVariable(1.0)
272 embedding = resource_variable_ops.ResourceVariable(
302 v0 = resource_variable_ops.ResourceVariable(1.0)
303 v1 = resource_variable_ops.ResourceVariable(2.0)
398 v0 = resource_variable_ops.ResourceVariable(1.0)
424 x = resource_variable_ops.ResourceVariable(1.0)
431 x = resource_variable_ops.ResourceVariable(1.0)
443 v = resource_variable_ops.ResourceVariable(1.0)
451 resource_variable_ops.ResourceVariable(2.),
[all …]

1234