Home | History | Annotate | Download | only in public

Lines Matching defs:Session

33 /// \brief A Session instance lets a caller drive a TensorFlow graph
36 /// When a Session is created with a given target, a new Session object
38 /// Those resources are available to this session to perform
39 /// computation described in the GraphDef. After extending the session
53 /// std::unique_ptr<tensorflow::Session>
54 /// session(tensorflow::NewSession(options));
56 /// // Create the session with this graph.
57 /// tensorflow::Status s = session->Create(graph);
64 /// s = session->Run({}, {"output:0"}, {"update_state"}, &outputs);
72 /// // Close the session to release the resources associated with
73 /// // this session.
74 /// session->Close();
78 /// A Session allows concurrent calls to Run(), though a Session must
83 class Session {
85 Session();
86 virtual ~Session();
88 /// \brief Create the graph to be used for the session.
90 /// Returns an error if this session has already been created with a
91 /// graph. To re-use the session with a different graph, the caller
92 /// must Close() the session first.
96 /// Session.
132 "supported for this session.");
137 "supported for this session.");
142 "session.");
175 /// \brief List devices in the session.
177 /// Retrieves the list of available devices within the session, and populates
182 /// \brief Closes this session.
184 /// Closing a session releases the resources used by this session
185 /// on the TensorFlow runtime (specified during session creation by
196 "LocalDeviceManager is not supported for this session.");
200 /// \brief Create a new session with the given options.
202 /// If session creation succeeds, the new `Session` will be stored in
206 Status NewSession(const SessionOptions& options, Session** out_session);
213 /// process of tearing them down. However, if a new session is started after
214 /// a Reset(), the new session is isolated from changes that old sessions
236 /// \brief Create a new session with the given options.
238 /// If a new `Session` object could not be created, this function will
243 Session* NewSession(const SessionOptions& options);