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

Method execution_mode

tensorflow/python/eager/context.py:753–755  ·  view source on GitHub ↗

Gets execution mode for current thread.

(self)

Source from the content-addressed store, hash-verified

751 # TODO(fishx): remove this property.
752 @property
753 def execution_mode(self):
754 """Gets execution mode for current thread."""
755 return ASYNC if self.is_async() else SYNC
756
757 @execution_mode.setter
758 def execution_mode(self, mode):

Callers 15

_next_internalMethod · 0.80
decoratorFunction · 0.80
_applyMethod · 0.80
_test_trainMethod · 0.80
testExecuteBasicAsyncMethod · 0.80

Calls 3

is_asyncMethod · 0.95
waitMethod · 0.45
handleMethod · 0.45

Tested by 14

decoratorFunction · 0.64
_applyMethod · 0.64
_test_trainMethod · 0.64
testExecuteBasicAsyncMethod · 0.64
run_benchmarkFunction · 0.64