| 41 | } |
| 42 | |
| 43 | Status SessionState::DeleteTensor(const string& handle) { |
| 44 | mutex_lock l(state_lock_); |
| 45 | if (tensors_.erase(handle) == 0) { |
| 46 | return errors::InvalidArgument("Failed to delete a tensor with handle '", |
| 47 | handle, "' in the session store."); |
| 48 | } |
| 49 | return Status::OK(); |
| 50 | } |
| 51 | |
| 52 | int64 SessionState::GetNewId() { |
| 53 | mutex_lock l(state_lock_); |
no test coverage detected