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

Method GetXlaService

tensorflow/compiler/xla/client/client_library.cc:129–136  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

127}
128
129/* static */ LocalService* ClientLibrary::GetXlaService(
130 se::Platform* platform) {
131 ClientLibrary& client_library = Singleton();
132 tensorflow::mutex_lock lock(client_library.service_mutex_);
133 auto it = client_library.local_instances_.find(platform->id());
134 CHECK(it != client_library.local_instances_.end());
135 return it->second->service.get();
136}
137
138/* static */ StatusOr<CompileOnlyClient*>
139ClientLibrary::GetOrCreateCompileOnlyClient(se::Platform* platform) {

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
idMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected