/external/tensorflow/tensorflow/lite/experimental/resource/ |
D | resource_variable.h | 31 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);
|
D | resource_variable.cc | 26 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()
|
D | resource_variable_test.cc | 42 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/ |
D | resource_variable_ops_test.py | 91 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 …]
|
D | critical_section_test.py | 48 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/ |
D | adagrad_da_test.py | 37 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 …]
|
D | proximal_gradient_descent_test.py | 36 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])
|
D | proximal_adagrad_test.py | 36 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])
|
D | ftrl_test.py | 35 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 …]
|
D | eager_test.py | 139 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 …]
|
D | 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) 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)
|
D | 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) 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)
|
D | adam_test.py | 69 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)
|
D | placeholder_test.py | 32 v = resource_variable_ops.ResourceVariable(4.0) 40 v = resource_variable_ops.ResourceVariable(4.0)
|
D | variable_ops_test.py | 49 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/ |
D | optimizer_test.py | 46 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 …]
|
D | gradient_descent_test.py | 66 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)
|
D | adagrad_da_test.py | 42 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(
|
D | adam_test.py | 69 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/ |
D | functional_saver_test.py | 58 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/ |
D | data_structures_test.py | 76 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/ |
D | auto_control_deps_test.py | 46 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/ |
D | packed_distributed_variable_test.py | 44 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/ |
D | lift_to_graph_test.py | 35 v1 = resource_variable_ops.ResourceVariable(1.0) 36 v2 = resource_variable_ops.ResourceVariable(2.0) 37 v3 = resource_variable_ops.ResourceVariable(3.0)
|
D | backprop_test.py | 121 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 …]
|