From eabae7b8e94da529e9da72bbacd534904c5e4b79 Mon Sep 17 00:00:00 2001 From: Kibeom Kim Date: Mon, 15 Jun 2020 07:00:00 -0700 Subject: [PATCH] Set async as default for TFRT runtime PiperOrigin-RevId: 316456716 Change-Id: Ifdffb129c4609108285892a7ead5758e67802641 --- tensorflow/python/eager/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/eager/context.py b/tensorflow/python/eager/context.py index b01f0795c72..68234985d15 100644 --- a/tensorflow/python/eager/context.py +++ b/tensorflow/python/eager/context.py @@ -427,7 +427,7 @@ class Context(object): raise ValueError( "execution_mode should be None/SYNC/ASYNC. Got %s" % execution_mode) if execution_mode is None: - execution_mode = SYNC + execution_mode = ASYNC if is_tfrt_enabled() else SYNC self._default_is_async = execution_mode == ASYNC self._lazy_remote_inputs_copy = None self._use_tfrt = is_tfrt_enabled()