MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / combined

Function combined

tensorflow/python/framework/ops.py:5198–5204  ·  view source on GitHub ↗
(device_name_or_function)

Source from the content-addressed store, hash-verified

5196 elif executing_eagerly_outside_functions():
5197 @tf_contextlib.contextmanager
5198 def combined(device_name_or_function):
5199 with get_default_graph().device(device_name_or_function):
5200 if not callable(device_name_or_function):
5201 with context.device(device_name_or_function):
5202 yield
5203 else:
5204 yield
5205 return combined(device_name_or_function)
5206 else:
5207 return get_default_graph().device(device_name_or_function)

Callers 1

deviceFunction · 0.85

Calls 2

get_default_graphFunction · 0.85
deviceMethod · 0.45

Tested by

no test coverage detected