Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ context
Function
context
tensorflow/python/eager/context.py:1559–1563 ·
view source on GitHub ↗
Returns a singleton context object.
()
Source
from the content-addressed store, hash-verified
1557
1558
1559
def
context():
1560
""
"Returns a singleton context object."
""
1561
if
_context is None:
1562
_create_context()
1563
return
_context
1564
1565
1566
def
context_safe():
Callers
15
test_subscribe_tensors_within_control_flow_context
Method · 0.85
ensure_initialized
Function · 0.85
set_global_seed
Function · 0.85
global_seed
Function · 0.85
internal_operation_seed
Function · 0.85
executing_eagerly
Function · 0.85
graph_mode
Function · 0.85
eager_mode
Function · 0.85
namescope
Function · 0.85
scope_name
Function · 0.85
device
Function · 0.85
list_devices
Function · 0.85
Calls
1
_create_context
Function · 0.85
Tested by
1
test_subscribe_tensors_within_control_flow_context
Method · 0.68