Support TFRT async config.

PiperOrigin-RevId: 316733436
Change-Id: I0eef2279b9c77d6084c1300a8d38a987a2cee065
This commit is contained in:
Kibeom Kim 2020-06-16 12:22:48 -07:00 committed by TensorFlower Gardener
parent dd3e910e21
commit aee694363c

View File

@ -713,8 +713,8 @@ TFE_Context* TFE_NewContext(const TFE_ContextOptions* opts, TF_Status* status) {
status->status = tfrt::ListOpHandlerChains(
opts->session_options.options, &op_handler_chains, &device_attributes);
if (!status->status.ok()) return nullptr;
return tensorflow::wrap(
new tfrt::ContextInterface(op_handler_chains, device_attributes));
return tensorflow::wrap(new tfrt::ContextInterface(
op_handler_chains, device_attributes, opts->async));
#else
status->status = tensorflow::errors::Unimplemented("TFRT is not supported");
return nullptr;