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

Method PlatformWithId

tensorflow/stream_executor/multi_platform_manager.cc:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108port::StatusOr<Platform*> MultiPlatformManagerImpl::PlatformWithId(
109 const Platform::Id& id) {
110 absl::MutexLock lock(&mu_);
111
112 SE_ASSIGN_OR_RETURN(Platform * platform, LookupByIdLocked(id));
113 if (!platform->Initialized()) {
114 SE_RETURN_IF_ERROR(platform->Initialize({}));
115 }
116
117 return platform;
118}
119
120port::StatusOr<Platform*> MultiPlatformManagerImpl::InitializePlatformWithName(
121 absl::string_view target, const std::map<string, string>& options) {

Callers

nothing calls this directly

Calls 3

ImplClass · 0.50
InitializedMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected