| 54 | } |
| 55 | |
| 56 | Status FunctionHandleCache::Clear() { |
| 57 | mutex_lock l(mu_); |
| 58 | for (auto entry : handles_) { |
| 59 | TF_RETURN_IF_ERROR(lib_->ReleaseHandle(entry.second)); |
| 60 | } |
| 61 | handles_.clear(); |
| 62 | return Status::OK(); |
| 63 | } |
| 64 | |
| 65 | } // namespace data |
| 66 | } // namespace tensorflow |
nothing calls this directly
no test coverage detected