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

Function NewSessionGroup

tensorflow/core/common_runtime/session.cc:104–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104Status NewSessionGroup(const SessionOptions& options,
105 SessionGroup** out_session_group,
106 const SessionGroupMetadata& metadata) {
107 SessionFactory* factory;
108 Status s = SessionFactory::GetFactory(options, &factory);
109 if (!s.ok()) {
110 *out_session_group = nullptr;
111 LOG(ERROR) << s;
112 return s;
113 }
114 // Starts exporting metrics through a platform-specific monitoring API (if
115 // provided). For builds using "tensorflow/core/platform/default", this is
116 // currently a no-op.
117 session_created->GetCell()->Set(true);
118 monitoring::StartExporter();
119 s = factory->NewSessionGroup(options, out_session_group, metadata);
120 if (!s.ok()) {
121 *out_session_group = nullptr;
122 }
123 return s;
124}
125
126Status Reset(const SessionOptions& options,
127 const std::vector<string>& containers) {

Callers 4

CreateSessionGroupMethod · 0.85
CreateSessionGroupFunction · 0.85

Calls 5

StartExporterFunction · 0.85
okMethod · 0.45
SetMethod · 0.45
GetCellMethod · 0.45
NewSessionGroupMethod · 0.45

Tested by 1

CreateSessionGroupFunction · 0.68