diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-01-24 15:07:21 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-01-24 15:10:57 -0800 |
commit | b3294d74c73d8f01412ffeeac616d0b8a2f4e18e (patch) | |
tree | 3585a13d3a8c9631b3f151b758b98ad72781178b /tensorflow/c/c_api.cc | |
parent | 170246dadb4926fb35000bba8beffb73f2299968 (diff) |
When a device list API such as TF_DeviceListName() succeeds, set the output status to OK.
PiperOrigin-RevId: 183148319
Diffstat (limited to 'tensorflow/c/c_api.cc')
-rw-r--r-- | tensorflow/c/c_api.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/c/c_api.cc b/tensorflow/c/c_api.cc index 92c9adbec7..3c7f041b39 100644 --- a/tensorflow/c/c_api.cc +++ b/tensorflow/c/c_api.cc @@ -927,6 +927,7 @@ int TF_DeviceListCount(const TF_DeviceList* list) { status->status = InvalidArgument("index out of bounds"); \ return err_val; \ } \ + status->status = Status::OK(); \ return list->response[index].accessor; \ } |