diff options
author | Reed Wanderman-Milne <reedwm@google.com> | 2018-07-13 11:05:09 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-13 11:08:47 -0700 |
commit | d98b99d1cd4337ee11e7cbc4c9b6324f0e381502 (patch) | |
tree | 5c7e4ce26d8070bbc51a3bd36964aa3e1441700d /tensorflow/core/public | |
parent | b5b5cc0e248b6fbd5025765f592a43af158a1cb2 (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.h | 2 |
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. |