Home
last modified time | relevance | path

Searched refs:variables_lib (Results 1 – 25 of 33) sorted by relevance

12

/external/tensorflow/tensorflow/python/distribute/
Dvars_test.py44 from tensorflow.python.ops import variables as variables_lib unknown
100 variables_lib.VariableAggregation.NONE,
101 variables_lib.VariableAggregation.SUM,
102 variables_lib.VariableAggregation.MEAN,
103 variables_lib.VariableAggregation.ONLY_FIRST_REPLICA,
112 variables_lib.VariableAggregation.SUM):
118 self.evaluate(variables_lib.global_variables_initializer())
130 2., aggregation=variables_lib.VariableAggregation.MEAN)
132 -2., aggregation=variables_lib.VariableAggregation.MEAN)
147 variables_lib.VariableAggregation.NONE,
[all …]
Dsharded_variable_test.py36 from tensorflow.python.ops import variables as variables_lib unknown
105 v0 = variables_lib.Variable([0])
106 v1 = variables_lib.Variable([1])
115 v0 = variables_lib.Variable([[0, 0]])
116 v1 = variables_lib.Variable([[1, 1], [2, 2]])
117 v2 = variables_lib.Variable([[3, 3]])
125 v0 = variables_lib.Variable([[0, 0]])
126 v1 = variables_lib.Variable([[1, 1], [2, 2]])
127 v2 = variables_lib.Variable([[3, 3]])
135 v0 = variables_lib.Variable([[0, 0]])
[all …]
Dps_values_test.py29 from tensorflow.python.ops import variables as variables_lib unknown
42 aggregating = variables_lib.Variable(1.)
51 1, aggregation=variables_lib.VariableAggregation.MEAN)
52 self.evaluate(variables_lib.global_variables_initializer())
Dvalues_test.py58 from tensorflow.python.ops import variables as variables_lib unknown
410 variables_lib.VariableSynchronization.ON_READ,
411 variables_lib.VariableSynchronization.ON_WRITE,
414 variables_lib.VariableAggregation.MEAN,
415 variables_lib.VariableAggregation.SUM,
416 variables_lib.VariableAggregation.ONLY_FIRST_REPLICA,
424 v = variables_lib.Variable(
426 self.assertIsInstance(v, variables_lib.Variable)
436 v = variables_lib.Variable(
482 v = variables_lib.Variable(
[all …]
Dcheckpointing_test.py28 from tensorflow.python.ops import variables as variables_lib unknown
46 save_checkpoint = trackable_utils.Checkpoint(v=variables_lib.Variable(
55 v = variables_lib.Variable(initial_value)
Dsharded_variable.py34 from tensorflow.python.ops import variables as variables_lib unknown
285 if any(not isinstance(v, variables_lib.Variable) for v in variables):
545 save_slice_info = variables_lib.Variable.SaveSliceInfo(
Dps_values.py30 from tensorflow.python.ops import variables as variables_lib unknown
36 class AggregatingVariable(variables_lib.Variable, core.Tensor):
/external/tensorflow/tensorflow/python/training/tracking/
Dutil_test.py38 from tensorflow.python.ops import variables as variables_lib unknown
341 original_root = trackable_utils.Checkpoint(v1=variables_lib.Variable(2.),
342 v2=variables_lib.Variable(3.))
346 v2=variables_lib.Variable(0.))
363 original_root = trackable_utils.Checkpoint(v1=variables_lib.Variable(2.),
364 v2=variables_lib.Variable(3.))
368 v2=variables_lib.Variable(0.))
376 original_root = trackable_utils.Checkpoint(v1=variables_lib.Variable(2.),
377 v2=variables_lib.Variable(3.))
380 partial_root = trackable_utils.Checkpoint(v1=variables_lib.Variable(0.))
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Drnn_test.py43 from tensorflow.python.ops import variables as variables_lib unknown
423 variables_lib.Variable(
430 inputs_t = variables_lib.Variable(inputs, trainable=False).value()
472 variables_lib.Variable(
477 variables_lib.global_variables_initializer().run()
483 inputs_t = variables_lib.Variable(inputs, trainable=False).value()
485 variables_lib.global_variables_initializer().run()
534 variables_lib.Variable(
539 variables_lib.global_variables_initializer().run()
546 variables_lib.Variable(
[all …]
Drnn_cell_test.py49 from tensorflow.python.ops import variables as variables_lib unknown
176 self._num_state_calls = variables_lib.VariableV1(0)
177 self._num_save_state_calls = variables_lib.VariableV1(0)
336 variables_lib.global_variables_initializer()
337 all_vars = variables_lib.global_variables()
404 variables_lib.global_variables_initializer().run()
431 variables_lib.global_variables_initializer().run()
464 variables_lib.global_variables_initializer().run()
498 variables_lib.global_variables_initializer().run()
558 variables_lib.global_variables_initializer().run()
[all …]
Dvariable_scope_test.py42 from tensorflow.python.ops import variables as variables_lib unknown
132 self.evaluate(variables_lib.variables_initializer([v]))
136 self.evaluate(variables_lib.variables_initializer([w]))
170 variables_lib.global_variables_initializer().run()
303 self.evaluate(variables_lib.variables_initializer([v]))
308 self.evaluate(variables_lib.variables_initializer([w]))
337 self.evaluate(variables_lib.global_variables_initializer())
392 self.evaluate(variables_lib.variables_initializer([v]))
411 self.evaluate(variables_lib.variables_initializer([u, w, x, y, z]))
430 self.evaluate(variables_lib.variables_initializer([w]))
[all …]
/external/tensorflow/tensorflow/python/keras/distribute/
Dsharded_variable_test.py25 from tensorflow.python.ops import variables as variables_lib unknown
38 variables_lib.Variable([0]),
39 variables_lib.Variable([1]),
42 variables_lib.Variable([2], trainable=False),
43 variables_lib.Variable([3], trainable=False),
Dcheckpointing_test.py32 from tensorflow.python.ops import variables as variables_lib unknown
53 v = variables_lib.Variable(random_ops.random_normal([]))
114 v = variables_lib.Variable(random_ops.random_normal([]))
Dminimize_loss_test.py42 from tensorflow.python.ops import variables as variables_lib unknown
113 self.evaluate(variables_lib.global_variables_initializer())
151 self.evaluate(variables_lib.global_variables_initializer())
208 self.evaluate(variables_lib.global_variables_initializer())
276 self.evaluate(variables_lib.global_variables_initializer())
383 self.evaluate(variables_lib.global_variables_initializer())
508 self.evaluate(variables_lib.global_variables_initializer())
/external/tensorflow/tensorflow/python/keras/feature_column/
Ddense_features_v2_test.py36 from tensorflow.python.ops import variables as variables_lib unknown
42 sess.run(variables_lib.global_variables_initializer())
176 self.evaluate(variables_lib.global_variables_initializer())
211 self.evaluate(variables_lib.global_variables_initializer())
222 self.evaluate(variables_lib.global_variables_initializer())
243 self.evaluate(variables_lib.global_variables_initializer())
254 self.evaluate(variables_lib.global_variables_initializer())
271 self.evaluate(variables_lib.global_variables_initializer())
292 self.evaluate(variables_lib.global_variables_initializer())
304 self.evaluate(variables_lib.global_variables_initializer())
[all …]
Ddense_features_test.py41 from tensorflow.python.ops import variables as variables_lib unknown
47 sess.run(variables_lib.global_variables_initializer())
231 self.evaluate(variables_lib.global_variables_initializer())
242 self.evaluate(variables_lib.global_variables_initializer())
263 self.evaluate(variables_lib.global_variables_initializer())
274 self.evaluate(variables_lib.global_variables_initializer())
291 self.evaluate(variables_lib.global_variables_initializer())
312 self.evaluate(variables_lib.global_variables_initializer())
324 self.evaluate(variables_lib.global_variables_initializer())
338 self.evaluate(variables_lib.global_variables_initializer())
[all …]
Dsequence_feature_column_test.py38 from tensorflow.python.ops import variables as variables_lib unknown
44 sess.run(variables_lib.global_variables_initializer())
141 self.evaluate(variables_lib.global_variables_initializer())
561 self.evaluate(variables_lib.global_variables_initializer())
/external/tensorflow/tensorflow/python/feature_column/
Dfeature_column_v2_test.py48 from tensorflow.python.ops import variables as variables_lib unknown
54 sess.run(variables_lib.global_variables_initializer())
559 self.evaluate(variables_lib.global_variables_initializer())
574 self.evaluate(variables_lib.global_variables_initializer())
594 self.evaluate(variables_lib.global_variables_initializer())
975 self.evaluate(variables_lib.global_variables_initializer())
1180 self.evaluate(variables_lib.global_variables_initializer())
1212 self.evaluate(variables_lib.global_variables_initializer())
1791 self.evaluate(variables_lib.global_variables_initializer())
2170 self.evaluate(variables_lib.global_variables_initializer())
[all …]
Dsequence_feature_column_test.py39 from tensorflow.python.ops import variables as variables_lib unknown
45 sess.run(variables_lib.global_variables_initializer())
308 self.evaluate(variables_lib.global_variables_initializer())
375 self.evaluate(variables_lib.global_variables_initializer())
450 self.evaluate(variables_lib.global_variables_initializer())
588 self.evaluate(variables_lib.global_variables_initializer())
/external/tensorflow/tensorflow/python/keras/tests/
Dtracking_util_test.py45 from tensorflow.python.ops import variables as variables_lib unknown
257 dummy_var = variables_lib.Variable([1.])
371 original_root = trackable_utils.Checkpoint(v1=variables_lib.Variable(2.),
372 v2=variables_lib.Variable(3.),
378 partial_root = trackable_utils.Checkpoint(v1=variables_lib.Variable(0.))
443 self.w = variables_lib.Variable(0.0)
444 self.b = variables_lib.Variable(0.0)
541 obj.var = variables_lib.Variable(0., name="v")
559 obj.var = variables_lib.Variable(0., name="v")
634 if isinstance(obj, variables_lib.Variable)]
[all …]
Dmodel_subclassing_test.py40 from tensorflow.python.ops import variables as variables_lib unknown
373 variables_lib.Variable(1., name='notdep_var'))
388 self.var = variables_lib.Variable(1.)
389 self.not_trainable_var = variables_lib.Variable(2., trainable=False)
726 self.my_variable = variables_lib.Variable(0.0, trainable=False)
/external/tensorflow/tensorflow/python/training/
Dbasic_session_run_hooks_test.py39 from tensorflow.python.ops import variables as variables_lib unknown
254 self.evaluate(variables_lib.global_variables_initializer())
272 self.evaluate(variables_lib.global_variables_initializer())
319 self.evaluate(variables_lib.global_variables_initializer())
333 self.evaluate(variables_lib.global_variables_initializer())
381 self.evaluate(variables_lib.global_variables_initializer())
976 self.evaluate(variables_lib.global_variables_initializer())
1007 self.evaluate(variables_lib.global_variables_initializer())
1044 self.evaluate(variables_lib.global_variables_initializer())
1064 self.evaluate(variables_lib.global_variables_initializer())
[all …]
Dwarm_starting_util.py29 from tensorflow.python.ops import variables as variables_lib unknown
178 elif isinstance(var, variables_lib.PartitionedVariable):
249 elif isinstance(var, variables_lib.PartitionedVariable):
/external/tensorflow/tensorflow/python/keras/layers/
Drnn_cell_wrapper_v2_test.py34 from tensorflow.python.ops import variables as variables_lib unknown
58 self.evaluate([variables_lib.global_variables_initializer()])
82 self.evaluate([variables_lib.global_variables_initializer()])
/external/tensorflow/tensorflow/python/tpu/
Dfeature_column_test.py32 from tensorflow.python.ops import variables as variables_lib unknown
39 sess.run(variables_lib.global_variables_initializer())

12