aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/public
diff options
context:
space:
mode:
authorGravatar Reed Wanderman-Milne <reedwm@google.com>2018-07-13 11:05:09 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-13 11:08:47 -0700
commitd98b99d1cd4337ee11e7cbc4c9b6324f0e381502 (patch)
tree5c7e4ce26d8070bbc51a3bd36964aa3e1441700d /tensorflow/core/public
parentb5b5cc0e248b6fbd5025765f592a43af158a1cb2 (diff)
Add version of SessionFactory::NewSession that returns Status.
This causes DirectSession to report a better error message if there is an error initializing GPUs. PiperOrigin-RevId: 204498143
Diffstat (limited to 'tensorflow/core/public')
-rw-r--r--tensorflow/core/public/session.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/public/session.h b/tensorflow/core/public/session.h
index d58c877cfd..cc8596ef3d 100644
--- a/tensorflow/core/public/session.h
+++ b/tensorflow/core/public/session.h
@@ -237,7 +237,7 @@ class Session {
/// If session creation succeeds, the new `Session` will be stored in
/// `*out_session`, the caller will take ownership of the returned
/// `*out_session`, and this function will return `OK()`. Otherwise, this
-/// function will return an error status.
+/// function will return an error status and set *out_session to nullptr.
Status NewSession(const SessionOptions& options, Session** out_session);
/// \brief Resets resource containers associated with a target.