MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SessionOptions

Struct SessionOptions

tensorflow/go/session.go:289–319  ·  view source on GitHub ↗

SessionOptions contains configuration information for a session.

Source from the content-addressed store, hash-verified

287
288// SessionOptions contains configuration information for a session.
289type SessionOptions struct {
290 // Target indicates the TensorFlow runtime to connect to.
291 //
292 // If 'target' is empty or unspecified, the local TensorFlow runtime
293 // implementation will be used. Otherwise, the TensorFlow engine
294 // defined by 'target' will be used to perform all computations.
295 //
296 // "target" can be either a single entry or a comma separated list
297 // of entries. Each entry is a resolvable address of one of the
298 // following formats:
299 // local
300 // ip:port
301 // host:port
302 // ... other system-specific formats to identify tasks and jobs ...
303 //
304 // NOTE: at the moment 'local' maps to an in-process service-based
305 // runtime.
306 //
307 // Upon creation, a single session affines itself to one of the
308 // remote processes, with possible load balancing choices when the
309 // "target" resolves to a list of possible processes.
310 //
311 // If the session disconnects from the remote process during its
312 // lifetime, session calls may fail immediately.
313 Target string
314
315 // Config is a binary-serialized representation of the
316 // tensorflow.ConfigProto protocol message
317 // (https://www.tensorflow.org/code/tensorflow/core/protobuf/config.proto).
318 Config []byte
319}
320
321// c converts the SessionOptions to the C API's TF_SessionOptions. Callers must
322// deallocate by calling the returned done() closure.

Calls

no outgoing calls