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

Function TFE_Execute

tensorflow/c/eager/c_api.cc:893–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891}
892
893void TFE_Execute(TFE_Op* op, TFE_TensorHandle** retvals, int* num_retvals,
894 TF_Status* status) {
895 VLOG(1) << "Calling TFE_Execute() on op " << op;
896 tensorflow::gtl::InlinedVector<tensorflow::TensorHandle*, 2> handle_retvals(
897 *num_retvals);
898 status->status =
899 tensorflow::EagerExecute(&op->operation, &handle_retvals, num_retvals);
900 if (!status->status.ok()) {
901 return;
902 }
903 for (int i = 0; i < *num_retvals; ++i) {
904 retvals[i] = new TFE_TensorHandle(handle_retvals[i]);
905 }
906}
907
908TFE_TensorHandle* TFE_TensorHandleCopyToDevice(TFE_TensorHandle* h,
909 TFE_Context* ctx,

Callers 15

TFE_Py_ExecuteCancelableFunction · 0.85
ReadVariableOpFunction · 0.85
TFE_Py_FastPathExecute_CFunction · 0.85
EagerCastFunction · 0.85
EvaluateOperationFunction · 0.85
createTFEQueueFunction · 0.85
createTFEEnqueueFunction · 0.85
createTFEDequeueFunction · 0.85
TFE_ExecuteOpInNewThreadFunction · 0.85
BM_ExecuteFunction · 0.85
BM_Execute_IdentityFunction · 0.85

Calls 2

EagerExecuteFunction · 0.85
okMethod · 0.45

Tested by 15

BM_ExecuteFunction · 0.68
BM_Execute_IdentityFunction · 0.68
TestRemoteExecuteFunction · 0.68
TensorHandleSilentCopyFunction · 0.68
TESTFunction · 0.68
Execute_MatMul_CPUFunction · 0.68