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

Method Create

tensorflow/core/framework/resource_mgr.h:579–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577
578template <typename T>
579Status ResourceMgr::Create(const string& container, const string& name,
580 T* resource) {
581 CheckDeriveFromResourceBase<T>();
582 CHECK(resource != nullptr);
583 mutex_lock l(mu_);
584 return DoCreate(container, MakeTypeIndex<T>(), name, resource);
585}
586
587template <typename T, bool use_dynamic_cast>
588Status ResourceMgr::Lookup(const string& container, const string& name,

Callers 1

CreateResourceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected