MCPcopy 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
1559def context():
1560 """Returns a singleton context object."""
1561 if _context is None:
1562 _create_context()
1563 return _context
1564
1565
1566def context_safe():

Callers 15

ensure_initializedFunction · 0.85
set_global_seedFunction · 0.85
global_seedFunction · 0.85
internal_operation_seedFunction · 0.85
executing_eagerlyFunction · 0.85
graph_modeFunction · 0.85
eager_modeFunction · 0.85
namescopeFunction · 0.85
scope_nameFunction · 0.85
deviceFunction · 0.85
list_devicesFunction · 0.85

Calls 1

_create_contextFunction · 0.85