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

Function decorator

tensorflow/contrib/eager/python/remote_test.py:51–56  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

49
50 @functools.wraps(f)
51 def decorator(self, *args, **kwargs):
52 with context.execution_mode(context.ASYNC):
53 f(self, *args, **kwargs)
54
55 with context.execution_mode(context.SYNC):
56 f(self, *args, **kwargs)
57
58 return decorator
59

Callers

nothing calls this directly

Calls 2

execution_modeMethod · 0.80
fFunction · 0.50

Tested by

no test coverage detected