diff options
author | Mingsheng Hong <hongm@google.com> | 2018-09-27 15:32:38 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-27 15:40:56 -0700 |
commit | bdab0b3c111bbe1c9656fa2228f1a4d28df5a7bf (patch) | |
tree | decbb27adcafeaadeebbfac3d72774a8397c3042 /tensorflow/c/c_api_experimental.h | |
parent | a3291ab1f2cb9ea2c4e4b3b9b26ad1a1866dfc50 (diff) |
Added an experimental API for user to set an internal error status.
See
https://github.com/apple/swift/pull/19588/files#diff-923cd5ac82727b31d446c23641b3d749
for an example usage.
Also removed an experimental API that's no longer needed.
PiperOrigin-RevId: 214847132
Diffstat (limited to 'tensorflow/c/c_api_experimental.h')
-rw-r--r-- | tensorflow/c/c_api_experimental.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tensorflow/c/c_api_experimental.h b/tensorflow/c/c_api_experimental.h index 950ad9aeed..d98d532e32 100644 --- a/tensorflow/c/c_api_experimental.h +++ b/tensorflow/c/c_api_experimental.h @@ -180,10 +180,8 @@ TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_DequeueVariantTensor( TF_CAPI_EXPORT extern void TFE_TensorHandlePrintDebugString( TFE_TensorHandle* handle); -// Returns a const scalar tensor. -// Caller owns both the input and the output tensor handles. -// TODO: Remove this API with hard-coded tensor computation. -TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_RunConstOp(TFE_Context* ctx); +TF_CAPI_EXPORT extern void TF_MakeInternalErrorStatus(TF_Status* status, + const char* errMsg); #ifdef __cplusplus } /* end extern "C" */ |