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

Method AddTensor

tensorflow/core/common_runtime/session_state.cc:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34Status SessionState::AddTensor(const string& handle, const Tensor& tensor) {
35 mutex_lock l(state_lock_);
36 if (!tensors_.insert({handle, tensor}).second) {
37 return errors::InvalidArgument("Failed to add a tensor with handle '",
38 handle, "' to the session store.");
39 }
40 return Status::OK();
41}
42
43Status SessionState::DeleteTensor(const string& handle) {
44 mutex_lock l(state_lock_);

Callers 15

SaveTensorsMethod · 0.45
ComputeMethod · 0.45
AsGraphDefInternalMethod · 0.45
AsGraphDefInternalMethod · 0.45
AsGraphDefInternalMethod · 0.45
AsGraphDefInternalMethod · 0.45
AsGraphDefInternalMethod · 0.45
AsGraphDefInternalMethod · 0.45
AddToGraphMethod · 0.45
AsGraphDefInternalMethod · 0.45
AsGraphDefInternalMethod · 0.45
AsGraphDefInternalMethod · 0.45

Calls 2

InvalidArgumentFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected