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

Function TFE_ContextExportRunMetadata

tensorflow/c/eager/c_api.cc:968–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966}
967
968void TFE_ContextExportRunMetadata(TFE_Context* ctx, TF_Buffer* buf,
969 TF_Status* status) {
970 status->status = ctx->context->Executor()->WaitForAllPendingNodes();
971 if (!status->status.ok()) return;
972 tensorflow::mutex_lock ml(*ctx->context->MetadataMu());
973 status->status = MessageToBuffer(*ctx->context->RunMetadataProto(), buf);
974 ctx->context->ClearRunMetadata();
975}
976
977namespace {
978TFE_Op* GetFunc(TFE_Context* ctx, const tensorflow::NameAttrList& func,

Callers 1

ExecuteWithTracingFunction · 0.85

Calls 6

MessageToBufferFunction · 0.85
RunMetadataProtoMethod · 0.80
ClearRunMetadataMethod · 0.80
ExecutorMethod · 0.45
okMethod · 0.45

Tested by 1

ExecuteWithTracingFunction · 0.68