Group TF1 profiles using the distributed runtime.
PiperOrigin-RevId: 308713981 Change-Id: Ie87148827e5db951e653e3af36b27165cef9d7e2
This commit is contained in:
parent
92978b84d0
commit
a59f9bac82
@ -422,6 +422,15 @@ std::vector<InterThreadConnectInfo> CreateInterThreadConnectInfoList() {
|
|||||||
{HostEventType::kSessionRun,
|
{HostEventType::kSessionRun,
|
||||||
HostEventType::kExecutorDoneCallback,
|
HostEventType::kExecutorDoneCallback,
|
||||||
{StatType::kStepId}},
|
{StatType::kStepId}},
|
||||||
|
{HostEventType::kRunGraph,
|
||||||
|
HostEventType::kExecutorStateProcess,
|
||||||
|
{StatType::kStepId}},
|
||||||
|
{HostEventType::kRunGraph,
|
||||||
|
HostEventType::kExecutorDoneCallback,
|
||||||
|
{StatType::kStepId}},
|
||||||
|
{HostEventType::kRunGraph,
|
||||||
|
HostEventType::kRunGraphDone,
|
||||||
|
{StatType::kStepId}},
|
||||||
{HostEventType::kExecutorStateProcess,
|
{HostEventType::kExecutorStateProcess,
|
||||||
HostEventType::kIteratorGetNextOp,
|
HostEventType::kIteratorGetNextOp,
|
||||||
{StatType::kStepId, StatType::kIterNum}},
|
{StatType::kStepId, StatType::kIterNum}},
|
||||||
@ -450,7 +459,8 @@ void GroupTfEvents(XSpace* space, EventGroupNameMap* event_group_name_map) {
|
|||||||
CreateInterThreadConnectInfoList();
|
CreateInterThreadConnectInfoList();
|
||||||
const std::vector<int64 /*EventType*/> root_event_types(
|
const std::vector<int64 /*EventType*/> root_event_types(
|
||||||
{HostEventType::kTraceContext, HostEventType::kFunctionRun,
|
{HostEventType::kTraceContext, HostEventType::kFunctionRun,
|
||||||
HostEventType::kSessionRun, HostEventType::kHostTrainingLoopIteration});
|
HostEventType::kSessionRun, HostEventType::kRunGraph,
|
||||||
|
HostEventType::kHostTrainingLoopIteration});
|
||||||
EventForest event_forest(connect_info_list, root_event_types,
|
EventForest event_forest(connect_info_list, root_event_types,
|
||||||
CreateTfXPlaneVisitor, space);
|
CreateTfXPlaneVisitor, space);
|
||||||
if (event_group_name_map) {
|
if (event_group_name_map) {
|
||||||
|
@ -65,6 +65,7 @@ const HostEventTypeMap& GetHostEventTypeMap() {
|
|||||||
{"SessionRun", kSessionRun},
|
{"SessionRun", kSessionRun},
|
||||||
{"FunctionRun", kFunctionRun},
|
{"FunctionRun", kFunctionRun},
|
||||||
{"RunGraph", kRunGraph},
|
{"RunGraph", kRunGraph},
|
||||||
|
{"RunGraphDone", kRunGraphDone},
|
||||||
{"TfOpRun", kTfOpRun},
|
{"TfOpRun", kTfOpRun},
|
||||||
{"EagerKernelExecute", kEagerKernelExecute},
|
{"EagerKernelExecute", kEagerKernelExecute},
|
||||||
{"ExecutorState::Process", kExecutorStateProcess},
|
{"ExecutorState::Process", kExecutorStateProcess},
|
||||||
|
@ -67,6 +67,7 @@ enum HostEventType {
|
|||||||
kSessionRun,
|
kSessionRun,
|
||||||
kFunctionRun,
|
kFunctionRun,
|
||||||
kRunGraph,
|
kRunGraph,
|
||||||
|
kRunGraphDone,
|
||||||
kTfOpRun,
|
kTfOpRun,
|
||||||
kEagerKernelExecute,
|
kEagerKernelExecute,
|
||||||
kExecutorStateProcess,
|
kExecutorStateProcess,
|
||||||
|
Loading…
Reference in New Issue
Block a user