Home
last modified time | relevance | path

Searched refs:get_default_graph (Results 1 – 25 of 194) sorted by relevance

12345678

/external/tensorflow/tensorflow/python/framework/
Drandom_seed.py63 global_seed = ops.get_default_graph().seed
68 if hasattr(ops.get_default_graph(), '_seed_used'):
69 ops.get_default_graph()._seed_used = True
73 op_seed = _graph_to_seed_dict.setdefault(ops.get_default_graph(), 0)
74 _graph_to_seed_dict[ops.get_default_graph()] += 1
207 ops.get_default_graph().seed = seed
Derror_interpolation_test.py166 ops.get_default_graph(),
172 non_traceback_op = ops.Operation._from_c_op(c_op, ops.get_default_graph())
236 normal_string, ops.get_default_graph())
243 one_tag_string, ops.get_default_graph())
253 one_tag_with_a_fake_function_tag, ops.get_default_graph())
268 two_tags_no_seps, ops.get_default_graph())
282 two_tags_with_seps, ops.get_default_graph())
295 newline, ops.get_default_graph())
Dfunction.py319 device_funcs = ops.get_default_graph()._device_functions_outer_to_inner
420 parent_graph = ops.get_default_graph()
592 self.add_to_graph(ops.get_default_graph())
730 self._outer_graph = ops.get_default_graph()
781 original_init_container = ops.get_default_graph()._container
785 ops.get_default_graph()._container = container_name
790 ops.get_default_graph()._container = original_init_container
1112 g = ops.get_default_graph()
1275 if "_XlaScope" in ops.get_default_graph()._attr_scope_map:
1276 attrs["_XlaScope"] = ops.get_default_graph()._attr_scope_map["_XlaScope"]
[all …]
Dmeta_graph_test.py88 graph_def=ops.get_default_graph().as_graph_def(add_shapes=True),
131 op_list = meta_graph.stripped_op_list_for_graph(ops.get_default_graph()
137 op_list = meta_graph.stripped_op_list_for_graph(ops.get_default_graph()
202 graph_def=ops.get_default_graph().as_graph_def(),
212 graph_def=ops.get_default_graph().as_graph_def(),
228 graph_def=ops.get_default_graph().as_graph_def(),
251 graph_def=ops.get_default_graph().as_graph_def(),
401 graph=ops.get_default_graph(),
411 graph=ops.get_default_graph(),
416 graph=ops.get_default_graph(),
[all …]
/external/tensorflow/tensorflow/python/distribute/
Ddistribution_strategy_context.py58 …ops.get_default_graph()._distribution_strategy_stack.append(context) # pylint: disable=protected-…
62 ops.get_default_graph()._distribution_strategy_stack.pop(-1) # pylint: disable=protected-access
78 …return ops.get_default_graph()._distribution_strategy_stack[-1] # pylint: disable=protected-access
310 …old_scope = ops.get_default_graph()._global_distribute_strategy_scope # pylint: disable=protected…
313 …ops.get_default_graph()._global_distribute_strategy_scope = None # pylint: disable=protected-acce…
320 …ops.get_default_graph()._global_distribute_strategy_scope = new_scope # pylint: disable=protected…
Dmirrored_run.py171 ops.get_default_graph().switch_to_thread_local()
343 self.graph = ops.get_default_graph()
346 self._init_graph = ops.get_default_graph()
501 if ops.get_default_graph() != t.graph:
/external/tensorflow/tensorflow/python/training/
Dtraining_util.py143 graph = graph or ops.get_default_graph()
228 graph = graph or ops.get_default_graph()
319 graph = graph or ops.get_default_graph()
362 graph = graph or ops.get_default_graph()
383 graph = graph or ops.get_default_graph()
404 graph = graph or ops.get_default_graph()
Dserver_lib_same_variables_no_clear_test.py46 new_v0 = ops.get_default_graph().get_tensor_by_name("v0:0")
47 new_v1 = ops.get_default_graph().get_tensor_by_name("v1:0")
/external/tensorflow/tensorflow/python/ops/
Dcontrol_flow_util_v2.py45 graph = ops.get_default_graph()
242 control_flow_context = ops.get_default_graph()._get_control_flow_context()
244 ops.get_default_graph()._set_control_flow_context(control_flow_context)
287 if (control_flow_util.GraphOrParentsInXlaContext(ops.get_default_graph()) or
368 and not (ops.get_default_graph().building_function
369 and "cflow_gradient_wrapper" in ops.get_default_graph().name)):
Dcontrol_flow_grad.py38 graph = ops.get_default_graph()
95 graph = ops.get_default_graph()
147 graph = ops.get_default_graph()
209 graph = ops.get_default_graph()
Dcritical_section_ops.py209 container = ops.get_default_graph()._container
270 with ops.get_default_graph()._lock: # pylint: disable=protected-access
271 existing_ops = ops.get_default_graph().get_operations()
277 created_ops = (set(ops.get_default_graph().get_operations())
Dcond_v2.py74 add_control_dependencies = ops.get_default_graph()._add_control_dependencies
84 … true_name, collections=ops.get_default_graph()._collections), # pylint: disable=protected-access
91 … false_name, collections=ops.get_default_graph()._collections), # pylint: disable=protected-access
139 if control_flow_util.GraphOrParentsInXlaContext(ops.get_default_graph()):
286 true_graph.outer_graph = ops.get_default_graph()
287 false_graph.outer_graph = ops.get_default_graph()
925 name, collections=ops.get_default_graph()._collections) # pylint: disable=protected-access
968 if control_flow_util.GraphOrParentsInXlaContext(ops.get_default_graph()):
1040 add_control_dependencies = ops.get_default_graph()._add_control_dependencies
1053 … collections=ops.get_default_graph()._collections), # pylint: disable=protected-access
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/variables/
Ddense_update_ops_no_tsan_test.py35 ops.get_default_graph().switch_to_thread_local()
65 ops.get_default_graph().switch_to_thread_local()
100 ops.get_default_graph().switch_to_thread_local()
130 ops.get_default_graph().switch_to_thread_local()
/external/tensorflow/tensorflow/compiler/tests/
Dconv_node_name_test.py47 graph = ops.get_default_graph()
57 return [n.name for n in ops.get_default_graph().as_graph_def().node]
67 n.name for n in ops.get_default_graph().as_graph_def().node
/external/tensorflow/tensorflow/python/compiler/tensorrt/test/
Dannotate_max_batch_sizes_test.py100 with ops.get_default_graph()._attr_scope({
106 with ops.get_default_graph()._attr_scope({
112 with ops.get_default_graph()._attr_scope({
/external/tensorflow/tensorflow/python/eager/
Dfunction_context.py61 parent_graph = None if executing_eagerly else ops.get_default_graph()
64 default_graph = ops.get_default_graph()
108 graph = ops.get_default_graph()
Ddef_function.py327 outer_graph = ops.get_default_graph()
328 func_graph = ops.get_default_graph()
371 graph = ops.get_default_graph()
531 ops.get_default_graph())
671 default_graph = ops.get_default_graph()
881 ops.get_default_graph()))
1073 inits, ops.get_default_graph(), op_map=op_map)
1120 lift_to_graph.lift_to_graph([init], ops.get_default_graph())[init],
/external/tensorflow/tensorflow/core/profiler/g3doc/
Dpython_api.md17 tf.get_default_graph(),
26 tf.get_default_graph(),
43 tf.get_default_graph(),
78 tf.get_default_graph(),
86 tf.get_default_graph(),
/external/tensorflow/tensorflow/python/grappler/
Dcost_analyzer_test.py46 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
71 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
102 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
151 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
Dmodel_analyzer_test.py37 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
58 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
/external/tensorflow/tensorflow/python/summary/
Dplugin_asset.py59 graph = ops.get_default_graph()
96 graph = ops.get_default_graph()
/external/tensorflow/tensorflow/python/kernel_tests/data_structures/
Dpadding_fifo_queue_test.py120 ops.get_default_graph().switch_to_thread_local()
149 ops.get_default_graph().switch_to_thread_local()
190 ops.get_default_graph().switch_to_thread_local()
638 ops.get_default_graph().switch_to_thread_local()
660 ops.get_default_graph().switch_to_thread_local()
685 ops.get_default_graph().switch_to_thread_local()
712 ops.get_default_graph().switch_to_thread_local()
818 ops.get_default_graph().switch_to_thread_local()
848 ops.get_default_graph().switch_to_thread_local()
921 ops.get_default_graph().switch_to_thread_local()
[all …]
Dfifo_queue_test.py773 ops.get_default_graph().switch_to_thread_local()
802 ops.get_default_graph().switch_to_thread_local()
829 ops.get_default_graph().switch_to_thread_local()
983 ops.get_default_graph().switch_to_thread_local()
1012 ops.get_default_graph().switch_to_thread_local()
1035 ops.get_default_graph().switch_to_thread_local()
1063 ops.get_default_graph().switch_to_thread_local()
1183 ops.get_default_graph().switch_to_thread_local()
1206 ops.get_default_graph().switch_to_thread_local()
1256 ops.get_default_graph().switch_to_thread_local()
[all …]
/external/tensorflow/tensorflow/python/tpu/
Dtpu_embedding_gradient.py84 g = ops.get_default_graph()
138 g = ops.get_default_graph()
/external/tensorflow/tensorflow/python/profiler/
Dmodel_analyzer.py173 graph = ops.get_default_graph()
344 graph = ops.get_default_graph()
406 graph = ops.get_default_graph()

12345678