aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/c_api.h
diff options
context:
space:
mode:
authorGravatar Mingsheng Hong <hongm@google.com>2018-02-14 13:51:14 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-14 13:56:45 -0800
commit21fe8feb34cb4d5b15ce35fc421c7430307facd2 (patch)
tree6a5972f199c40521ddbc2f3ade92df8c4082d574 /tensorflow/c/c_api.h
parent620dc3f097d047346943c416823f5e370df9fe4b (diff)
Added C-API based unit tests for GPU and XLA GPU testing.
Also refined the API comment for TF_NewSession(). PiperOrigin-RevId: 185739196
Diffstat (limited to 'tensorflow/c/c_api.h')
-rw-r--r--tensorflow/c/c_api.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/tensorflow/c/c_api.h b/tensorflow/c/c_api.h
index 6d30905a1a..ad592ef709 100644
--- a/tensorflow/c/c_api.h
+++ b/tensorflow/c/c_api.h
@@ -1287,11 +1287,12 @@ TF_CAPI_EXPORT extern void TF_DeleteFunction(TF_Function* func);
typedef struct TF_Session TF_Session;
-// Return a new execution session with the associated graph, or NULL on error.
+// Return a new execution session with the associated graph, or NULL on
+// error. Does not take ownership of any input parameters.
//
-// *graph must be a valid graph (not deleted or nullptr). This function will
-// prevent the graph from being deleted until TF_DeleteSession() is called.
-// Does not take ownership of opts.
+// *`graph` must be a valid graph (not deleted or nullptr). `graph` will be be
+// kept alive for the lifetime of the returned TF_Session. New nodes can still
+// be added to `graph` after this call.
TF_CAPI_EXPORT extern TF_Session* TF_NewSession(TF_Graph* graph,
const TF_SessionOptions* opts,
TF_Status* status);