diff options
Diffstat (limited to 'tensorflow/core/framework/resource_mgr.cc')
-rw-r--r-- | tensorflow/core/framework/resource_mgr.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/framework/resource_mgr.cc b/tensorflow/core/framework/resource_mgr.cc index 71dc968312..3a7de172a6 100644 --- a/tensorflow/core/framework/resource_mgr.cc +++ b/tensorflow/core/framework/resource_mgr.cc @@ -41,7 +41,7 @@ void ResourceMgr::Clear() { containers_.clear(); } -Status ResourceMgr::DoCreate(const string& container, std::type_index type, +Status ResourceMgr::DoCreate(const string& container, ResourceMgrTypeIndex type, const string& name, ResourceBase* resource) { { mutex_lock l(mu_); @@ -58,7 +58,7 @@ Status ResourceMgr::DoCreate(const string& container, std::type_index type, type.name()); } -Status ResourceMgr::DoLookup(const string& container, std::type_index type, +Status ResourceMgr::DoLookup(const string& container, ResourceMgrTypeIndex type, const string& name, ResourceBase** resource) const { mutex_lock l(mu_); @@ -76,7 +76,7 @@ Status ResourceMgr::DoLookup(const string& container, std::type_index type, return Status::OK(); } -Status ResourceMgr::DoDelete(const string& container, std::type_index type, +Status ResourceMgr::DoDelete(const string& container, ResourceMgrTypeIndex type, const string& name) { ResourceBase* base = nullptr; { |