/external/tensorflow/tensorflow/python/kernel_tests/ |
D | variable_scope_test.py | 41 from tensorflow.python.ops import variable_scope 83 vs = variable_scope._get_default_variable_store() 91 vs = variable_scope._get_default_variable_store() 98 vs = variable_scope._get_default_variable_store() 116 vs = variable_scope._get_default_variable_store() 129 with variable_scope.variable_scope("tower0") as tower: 130 with variable_scope.variable_scope("foo", initializer=init): 131 v = variable_scope.get_variable("v", []) 134 with variable_scope.variable_scope(tower, initializer=init): 135 w = variable_scope.get_variable("w", []) [all …]
|
D | template_test.py | 32 from tensorflow.python.ops import variable_scope 40 return variable_scope.get_variable( 46 with variable_scope.variable_scope(scope_name): 47 return variable_scope.get_variable( 54 return variable_scope.get_variable( 60 variable_scope.get_variable(name, shape=[1], trainable=trainable) 61 return variable_scope.get_variable( 66 variable_scope.get_local_variable( 68 return variable_scope.get_variable( 87 m = variable_scope.get_variable( [all …]
|
D | partitioned_variables_test.py | 34 from tensorflow.python.ops import variable_scope 45 with variable_scope.variable_scope("root", partitioner=partitioner): 46 v0 = variable_scope.get_variable( 56 with variable_scope.variable_scope("root", partitioner=partitioner): 57 v0 = variable_scope.get_variable("v0", dtype=dtypes.int64, shape=[20]) 64 with variable_scope.variable_scope( 66 v0 = variable_scope.get_variable( 83 with variable_scope.variable_scope("root", partitioner=partitioner): 84 v0 = variable_scope.get_variable( 180 with variable_scope.variable_scope( [all …]
|
D | rnn_cell_test.py | 48 from tensorflow.python.ops import variable_scope 253 with variable_scope.variable_scope("share_scope"): 255 with variable_scope.variable_scope("drop_scope"): 286 with variable_scope.variable_scope("drop_scope"): 329 with variable_scope.variable_scope(prefix) as scope: 457 with variable_scope.variable_scope("share_scope"): 491 with variable_scope.variable_scope("share_scope"): 549 with variable_scope.variable_scope("share_scope"): 630 with variable_scope.variable_scope("root") as scope: 777 with variable_scope.variable_scope("noshard_scope"): [all …]
|
/external/tensorflow/tensorflow/python/training/ |
D | checkpoint_utils_test.py | 35 from tensorflow.python.ops import variable_scope 47 v1 = variable_scope.get_variable("var1", [1, 10]) 48 v2 = variable_scope.get_variable("var2", [10, 10]) 49 v3 = variable_scope.get_variable("var3", [100, 100]) 50 with variable_scope.variable_scope("useful_scope"): 51 v4 = variable_scope.get_variable("var4", [9, 9]) 66 with variable_scope.variable_scope("scope"): 67 v1 = variable_scope.get_variable( 130 with variable_scope.variable_scope("some_scope"): 131 my1 = variable_scope.get_variable("my1", [1, 10]) [all …]
|
D | warm_starting_util_test.py | 31 from tensorflow.python.ops import variable_scope 66 var = variable_scope.get_variable( 86 all_vars.append(variable_scope.get_variable( 104 with variable_scope.variable_scope("", partitioner=partitioner): 125 fruit_weights = variable_scope.get_variable( 143 fruit_weights = variable_scope.get_variable( 157 fruit_weights = variable_scope.get_variable( 183 fruit_weights = variable_scope.get_variable( 212 fruit_weights = variable_scope.get_variable( 232 fruit_output_layer = variable_scope.get_variable( [all …]
|
D | slot_creator.py | 47 from tensorflow.python.ops import variable_scope 63 current_partitioner = variable_scope.get_variable_scope().partitioner 64 variable_scope.get_variable_scope().set_partitioner(None) 74 slot = variable_scope.get_variable( 82 variable_scope.get_variable_scope().set_partitioner(current_partitioner) 148 with variable_scope.variable_scope(None, prefix + "/" + name): 207 with variable_scope.variable_scope(None, prefix + "/" + name):
|
D | moving_averages.py | 29 from tensorflow.python.ops import variable_scope 154 with variable_scope.variable_scope(name, "WeightedMovingAvg", 156 value_x_weight_var = variable_scope.get_variable( 163 weight_var = variable_scope.get_variable( 234 with variable_scope.variable_scope( 242 if variable_scope.get_variable_scope().reuse: 246 for x in variable_scope.get_variable_scope().global_variables() 248 full_name = variable_scope.get_variable_scope().name + "/" + name 257 biased_var = variable_scope.get_variable( 263 local_step = variable_scope.get_variable(
|
D | checkpoint_ops_test.py | 31 from tensorflow.python.ops import variable_scope 51 with variable_scope.variable_scope('some_scope'): 52 variable_scope.get_variable(name='embeddings', shape=[5, 16], 152 remapped_matrix = variable_scope.get_variable( 185 remapped_matrix = variable_scope.get_variable( 222 remapped_matrix = variable_scope.get_variable( 257 remapped_matrix = variable_scope.get_variable( 290 remapped_embeddings = variable_scope.get_variable( 336 remapped_embeddings = variable_scope.get_variable( 374 remapped_embeddings = variable_scope.get_variable(
|
/external/tensorflow/tensorflow/python/distribute/ |
D | mirrored_variable_test.py | 40 from tensorflow.python.ops import variable_scope 105 v = variable_scope.variable(2.0, name="bar") 110 v1 = variable_scope.variable(1.0, name="foo") 142 v = variable_scope.variable(1.0, name="foo") 153 v = variable_scope.variable(1.0) 166 vs.append(variable_scope.variable(1.0, name="foo" + str(i))) 179 vs.append(variable_scope.variable(1.0, name="foo/bar")) 180 vs.append(variable_scope.variable(1.0, name="foo_1/bar")) 181 vs.append(variable_scope.variable(1.0, name="foo_1/bar_1")) 182 vs.append(variable_scope.variable(1.0, name="foo/bar_1")) [all …]
|
D | shared_variable_creator_test.py | 24 from tensorflow.python.ops import variable_scope 59 with variable_scope.variable_creator_scope(creator_fns[0]): 60 v0 = variable_scope.variable(1.0, name="foo") 62 with variable_scope.variable_creator_scope(creator_fns[1]): 63 v1 = variable_scope.variable(1.0, name="foo") 65 with variable_scope.variable_creator_scope(creator_fns[2]): 66 v2 = variable_scope.variable(1.0, name="foo")
|
D | checkpoint_utils_test.py | 35 from tensorflow.python.ops import variable_scope 45 v1 = variable_scope.get_variable("var1", [1, 10]) 46 v2 = variable_scope.get_variable("var2", [10, 10]) 81 v1 = variable_scope.get_variable("new_var1", [1, 10]) 82 v2 = variable_scope.get_variable( 84 synchronization=variable_scope.VariableSynchronization.ON_READ, 85 aggregation=variable_scope.VariableAggregation.MEAN) 115 v1 = variable_scope.get_variable("new_var1", [1, 10])
|
D | mirrored_strategy_test.py | 60 from tensorflow.python.ops import variable_scope 344 with variable_scope.variable_creator_scope(thread_creator_fn): 346 v = variable_scope.variable(1.0) 359 variable_scope.variable_creator_scope(main_thread_creator): 552 c = variable_scope.variable(1.0, name="c") 556 b = variable_scope.variable(1.0, name="b") 563 a = variable_scope.variable(1.0, name="a") 581 c = variable_scope.get_variable("c", [1]) 585 b = variable_scope.get_variable("b", [1]) 592 a = variable_scope.get_variable("a", [1]) [all …]
|
D | distribute_lib_test.py | 35 from tensorflow.python.ops import variable_scope 169 "bar", variable_scope.VariableSynchronization.AUTO, 170 variable_scope.VariableAggregation.NONE) 172 variable_scope.variable(1.0, name="bar")) 189 "baz", variable_scope.VariableSynchronization.AUTO, 190 variable_scope.VariableAggregation.NONE) 192 variable_scope.variable(1.0, name="baz")) 219 with variable_scope.variable_creator_scope(creator): 236 with variable_scope.variable_scope("AA"): 247 "baz", variable_scope.VariableSynchronization.ON_WRITE, [all …]
|
D | parameter_server_strategy_test.py | 56 from tensorflow.python.ops import variable_scope 132 n = variable_scope.get_variable('n', initializer=10.0) 151 x = variable_scope.get_variable( 153 aggregation=variable_scope.VariableAggregation.SUM) 165 y = variable_scope.get_variable( 167 aggregation=variable_scope.VariableAggregation.SUM) 175 z = variable_scope.get_variable( 177 aggregation=variable_scope.VariableAggregation.SUM) 197 u = variable_scope.get_variable('u', initializer=30.0) 198 v = variable_scope.get_variable('v', initializer=30.0) [all …]
|
D | reduce_util.py | 23 from tensorflow.python.ops import variable_scope 43 variable_scope.VariableAggregation.SUM: ReduceOp.SUM, 44 variable_scope.VariableAggregation.MEAN: ReduceOp.MEAN,
|
D | vars_test.py | 43 from tensorflow.python.ops import variable_scope 115 v = variable_scope.variable( 129 v_to_assign = variable_scope.variable( 131 v_to_assign_sub = variable_scope.variable( 161 v = variable_scope.variable( 215 v = variable_scope.variable( 257 v = variable_scope.variable( 282 v = variable_scope.variable( 328 v = variable_scope.variable( 378 v = variable_scope.variable( [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | convert_to_constants_test.py | 52 from tensorflow.python.ops import variable_scope 567 with variable_scope.variable_scope("", use_resource=use_resource): 568 variable_node = variable_scope.get_variable( 570 variable_scope.get_variable("unused_variable_node", initializer=1.0) 599 with variable_scope.variable_scope("", use_resource=True): 600 variable_node = variable_scope.get_variable( 602 another_variable = variable_scope.get_variable( 711 with variable_scope.variable_scope("", use_resource=True): 712 x = variable_scope.get_variable("var_x", initializer=1.0) 713 y = variable_scope.get_variable("var_y", initializer=2.0) [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | template.py | 26 from tensorflow.python.ops import variable_scope 300 with variable_scope._pure_variable_scope( # pylint:disable=protected-access 302 … variable_scope._get_unique_variable_scope(self._name)), # pylint:disable=protected-access 383 with variable_scope.variable_scope( 389 with variable_scope.variable_scope( 406 def variable_scope(self): member in Template 490 default = variable_scope._get_default_variable_store() # pylint: disable=protected-access 492 self._eager_variable_store = variable_scope.EagerVariableStore(default) 494 self._eager_variable_store = variable_scope.EagerVariableStore() 515 variable_scope.get_variable_scope_store().close_variable_subscopes( [all …]
|
D | metrics_impl.py | 34 from tensorflow.python.ops import variable_scope 76 return variable_scope.variable( 83 synchronization=variable_scope.VariableSynchronization.ON_READ, 84 aggregation=variable_scope.VariableAggregation.SUM, 362 with variable_scope.variable_scope(name, 'mean', (values, weights)): 724 with variable_scope.variable_scope(name, 'auc', 1049 with variable_scope.variable_scope(name, 'mean_accuracy', 1158 with variable_scope.variable_scope(name, 'mean_iou', 1386 with variable_scope.variable_scope(name, 'mean', (values, weights)): 1560 with variable_scope.variable_scope(name, 'false_negatives', [all …]
|
/external/tensorflow/tensorflow/python/profiler/internal/ |
D | model_analyzer_testlib.py | 31 from tensorflow.python.ops import variable_scope 41 _ = variable_scope.get_variable( 45 kernel = variable_scope.get_variable( 50 kernel = variable_scope.get_variable( 62 with variable_scope.variable_scope('inp_%d' % i): 79 kernel1 = variable_scope.get_variable( 85 kernel2 = variable_scope.get_variable(
|
/external/tensorflow/tensorflow/python/tpu/ |
D | bfloat16.py | 26 from tensorflow.python.ops import variable_scope 77 ) -> Generator[variable_scope.variable_scope, None, None]: 90 with variable_scope.variable_scope(
|
/external/tensorflow/tensorflow/python/keras/feature_column/ |
D | base_feature_layer.py | 29 from tensorflow.python.ops import variable_scope 75 with variable_scope.variable_scope( 77 with variable_scope.variable_scope(
|
/external/tensorflow/tensorflow/python/eager/ |
D | wrap_function_test.py | 37 from tensorflow.python.ops import variable_scope 404 v2 = variable_scope.get_variable( 422 v2 = variable_scope.get_variable( 446 with variable_scope.variable_scope( 447 'reuse', reuse=variable_scope.AUTO_REUSE): 448 v = variable_scope.get_variable( 453 with variable_scope.variable_scope( 454 'reuse', reuse=variable_scope.AUTO_REUSE): 455 v = variable_scope.get_variable( 460 with variable_scope.variable_scope( [all …]
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.variable_scope.pbtxt | 1 path: "tensorflow.variable_scope" 3 is_instance: "<class \'tensorflow.python.ops.variable_scope.variable_scope\'>"
|