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

Method DeleteTensor

tensorflow/core/common_runtime/session_state.cc:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43Status 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
52int64 SessionState::GetNewId() {
53 mutex_lock l(state_lock_);

Callers 1

ComputeMethod · 0.80

Calls 2

InvalidArgumentFunction · 0.85
eraseMethod · 0.45

Tested by

no test coverage detected