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

Method PlatformWithName

tensorflow/stream_executor/multi_platform_manager.cc:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96port::StatusOr<Platform*> MultiPlatformManagerImpl::PlatformWithName(
97 absl::string_view target) {
98 absl::MutexLock lock(&mu_);
99
100 SE_ASSIGN_OR_RETURN(Platform * platform, LookupByNameLocked(target));
101 if (!platform->Initialized()) {
102 SE_RETURN_IF_ERROR(platform->Initialize({}));
103 }
104
105 return platform;
106}
107
108port::StatusOr<Platform*> MultiPlatformManagerImpl::PlatformWithId(
109 const Platform::Id& id) {

Callers

nothing calls this directly

Calls 3

ImplClass · 0.50
InitializedMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected