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

Function wrapper

tensorflow/python/framework/config_test.py:43–50  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

41
42def reset_eager(fn):
43 def wrapper(*args, **kwargs):
44 try:
45 return fn(*args, **kwargs)
46 finally:
47 # Reset the context.
48 context._context = None
49 ops.enable_eager_execution_internal()
50 assert context._context is not None
51
52 return wrapper
53

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected