aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c
diff options
context:
space:
mode:
authorGravatar bstriner <bstriner@gmail.com>2018-08-14 04:48:11 -0400
committerGravatar bstriner <bstriner@gmail.com>2018-08-14 04:48:11 -0400
commit26e7d51fee4ecfaeffbfad7beaf6952b3132b444 (patch)
tree662a88fa4dece905485a1d7c3f454f0b59e43acc /tensorflow/c
parent285273717d17c0609c49e020b4cc9220913d3558 (diff)
py37
Diffstat (limited to 'tensorflow/c')
-rwxr-xr-x[-rw-r--r--]tensorflow/c/eager/c_api.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/c/eager/c_api.cc b/tensorflow/c/eager/c_api.cc
index ce5a3f29a4..1ccae3f138 100644..100755
--- a/tensorflow/c/eager/c_api.cc
+++ b/tensorflow/c/eager/c_api.cc
@@ -244,8 +244,8 @@ void TFE_ContextOptionsSetConfig(TFE_ContextOptions* options, const void* proto,
}
void TFE_ContextOptionsSetAsync(TFE_ContextOptions* options,
- unsigned char async_) {
- options->async = async_;
+ unsigned char enable) {
+ options->async = enable;
}
void TFE_ContextOptionsSetDevicePlacementPolicy(
TFE_ContextOptions* options, TFE_ContextDevicePlacementPolicy policy) {
@@ -253,9 +253,9 @@ void TFE_ContextOptionsSetDevicePlacementPolicy(
}
TF_CAPI_EXPORT extern void TFE_ContextSetAsyncForThread(TFE_Context* ctx,
- unsigned char async_,
+ unsigned char enable,
TF_Status* status) {
- status->status = ctx->context.SetAsyncForThread(async_);
+ status->status = ctx->context.SetAsyncForThread(enable);
}
void TFE_DeleteContextOptions(TFE_ContextOptions* options) { delete options; }