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

Function PrepareRemoteOp

tensorflow/core/common_runtime/eager/execute.cc:666–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664
665#if !defined(IS_MOBILE_PLATFORM)
666void PrepareRemoteOp(eager::Operation* remote_op, EagerOperation* op) {
667 EagerContext* ctx = op->EagerContext();
668
669 remote_op->set_id(ctx->RemoteMgr()->NextOpId());
670 remote_op->set_name(op->Name());
671
672 op->Attrs().FillAttrValueMap(remote_op->mutable_attrs());
673 remote_op->set_device(op->Device()->name());
674}
675
676Status EagerRemoteExecute(EagerOperation* op, TensorHandle** retvals,
677 int* num_retvals) {

Callers 1

EagerRemoteExecuteFunction · 0.70

Calls 10

NextOpIdMethod · 0.80
RemoteMgrMethod · 0.80
nameMethod · 0.65
EagerContextMethod · 0.45
set_nameMethod · 0.45
NameMethod · 0.45
FillAttrValueMapMethod · 0.45
AttrsMethod · 0.45
set_deviceMethod · 0.45
DeviceMethod · 0.45

Tested by

no test coverage detected