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

Method GetOrCreateLocalClient

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

static */

Source from the content-addressed store, hash-verified

80ClientLibrary::~ClientLibrary() = default;
81
82/* static */ StatusOr<LocalClient*> ClientLibrary::GetOrCreateLocalClient(
83 se::Platform* platform, const absl::optional<std::set<int>>& device_set) {
84 LocalClientOptions default_options;
85 default_options.set_platform(platform);
86 default_options.set_allowed_devices(device_set);
87 return GetOrCreateLocalClient(default_options);
88}
89
90/* static */ StatusOr<LocalClient*> ClientLibrary::GetOrCreateLocalClient(
91 const LocalClientOptions& options) {

Callers

nothing calls this directly

Calls 10

TF_ASSIGN_OR_RETURNFunction · 0.50
platformMethod · 0.45
number_of_replicasMethod · 0.45
findMethod · 0.45
idMethod · 0.45
endMethod · 0.45
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected