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

Method AddRemoteMirror

tensorflow/core/common_runtime/eager/tensor_handle.cc:385–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385Status TensorHandle::AddRemoteMirror(std::unique_ptr<RemoteTensorHandleData> t,
386 Device* d) {
387 mutex_lock l(remote_mirrors_mutex_);
388 auto ret = remote_mirrors_.insert(std::make_pair(d, std::move(t)));
389 if (!ret.second) {
390 return errors::Internal("Attempted to duplicate a remote mirror.");
391 }
392
393 return Status::OK();
394}
395
396Status TensorHandle::SetRemoteShape(const TensorShape& shape,
397 tensorflow::Device* d) {

Callers 1

TEST_FFunction · 0.80

Calls 2

InternalFunction · 0.85
insertMethod · 0.45

Tested by 1

TEST_FFunction · 0.64