Home
last modified time | relevance | path

Searched refs:op_stats (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/core/profiler/utils/
Ddiagnostics.cc49 void PopulateStepDiagnostics(const OpStats& op_stats, Diagnostics* diag) { in PopulateStepDiagnostics() argument
50 if (op_stats.step_db().use_incomplete_step()) { in PopulateStepDiagnostics()
52 } else if (op_stats.step_db().step_sequence().empty()) { in PopulateStepDiagnostics()
55 if (op_stats.step_db().num_steps_dropped()) { in PopulateStepDiagnostics()
57 absl::StrCat(op_stats.step_db().num_steps_dropped(), kStepsDropped); in PopulateStepDiagnostics()
61 void PopulateOverviewDiagnostics(const OpStats& op_stats, Diagnostics* diag) { in PopulateOverviewDiagnostics() argument
62 *diag->mutable_errors() = op_stats.diagnostics().errors(); in PopulateOverviewDiagnostics()
66 if (op_stats.run_environment().device_type() != "CPU" && in PopulateOverviewDiagnostics()
67 op_stats.run_environment().device_core_count() <= 0) { in PopulateOverviewDiagnostics()
71 *diag->mutable_warnings() = op_stats.diagnostics().warnings(); in PopulateOverviewDiagnostics()
[all …]
Ddiagnostics.h38 void PopulateStepDiagnostics(const OpStats& op_stats, Diagnostics* diag);
40 void PopulateOverviewDiagnostics(const OpStats& op_stats, Diagnostics* diag);
/external/tensorflow/tensorflow/core/profiler/convert/
Dxplane_to_op_stats.cc133 OpStats* op_stats) { in PropagateXSpaceDiagnosticsToOpStats() argument
137 *op_stats->mutable_diagnostics()->mutable_errors() = {unique_errors.begin(), in PropagateXSpaceDiagnosticsToOpStats()
143 *op_stats->mutable_diagnostics()->mutable_warnings() = { in PropagateXSpaceDiagnosticsToOpStats()
153 OpStats op_stats; in ConvertXSpaceToOpStats() local
155 PropagateXSpaceDiagnosticsToOpStats(space, &op_stats); in ConvertXSpaceToOpStats()
158 op_stats.mutable_device_op_metrics_db()); in ConvertXSpaceToOpStats()
160 op_stats.mutable_run_environment()); in ConvertXSpaceToOpStats()
168 if (!op_stats.has_perf_env()) { in ConvertXSpaceToOpStats()
169 *op_stats.mutable_perf_env() = GetPerfEnvFromXPlane(*device_trace); in ConvertXSpaceToOpStats()
190 op_stats.mutable_run_environment()->set_device_type(std::string(gpu_model)); in ConvertXSpaceToOpStats()
[all …]
Dop_stats_to_pod_viewer_test.cc55 void CreateOpStats(OpStats* op_stats) { in CreateOpStats() argument
56 PerCoreStepInfo* info = op_stats->mutable_step_db()->add_step_sequence(); in CreateOpStats()
78 CoreDetails& details = (*op_stats->mutable_core_id_to_details())[kCoreId]; in CreateOpStats()
83 OpStats op_stats; in TEST() local
84 CreateOpStats(&op_stats); in TEST()
85 PodViewerDatabase pod_viewer_db = ConvertOpStatsToPodViewer(op_stats); in TEST()
118 OpStats op_stats; in TEST() local
119 op_stats.mutable_step_db()->set_use_incomplete_step(true); in TEST()
120 PodViewerDatabase pod_viewer_db = ConvertOpStatsToPodViewer(op_stats); in TEST()
126 OpStats op_stats; in TEST() local
[all …]
Dop_stats_to_pod_viewer.cc28 PodStatsSequence ConvertOpStatsToPodStatsSequence(const OpStats& op_stats, in ConvertOpStatsToPodStatsSequence() argument
34 for (const auto& step_sequence : op_stats.step_db().step_sequence()) { in ConvertOpStatsToPodStatsSequence()
49 PodViewerDatabase ConvertOpStatsToPodViewer(const OpStats& op_stats) { in ConvertOpStatsToPodViewer() argument
51 database.set_device_type(op_stats.run_environment().device_type()); in ConvertOpStatsToPodViewer()
52 PodStatsDatabase pod_stats = ConvertOpStatsToPodStats(op_stats); in ConvertOpStatsToPodViewer()
56 ConvertOpStatsToPodStatsSequence(op_stats, std::move(pod_stats)); in ConvertOpStatsToPodViewer()
57 PopulateStepDiagnostics(op_stats, database.mutable_diagnostics()); in ConvertOpStatsToPodViewer()
Dop_stats_to_overview_page.cc174 OverviewPageAnalysis ComputeAnalysisResult(const OpStats& op_stats) { in ComputeAnalysisResult() argument
177 op_stats.device_op_metrics_db(), /*with_idle=*/false); in ComputeAnalysisResult()
179 GroupKernelReportsByOpName(op_stats.kernel_stats_db()); in ComputeAnalysisResult()
202 op_stats.device_op_metrics_db().precision_stats().compute_16bit_ps() + in ComputeAnalysisResult()
203 op_stats.device_op_metrics_db().precision_stats().compute_32bit_ps(); in ComputeAnalysisResult()
207 op_stats.device_op_metrics_db().precision_stats().compute_16bit_ps(), in ComputeAnalysisResult()
212 op_stats.device_op_metrics_db().precision_stats().compute_32bit_ps(), in ComputeAnalysisResult()
218 for (const OpMetrics& metrics : op_stats.host_op_metrics_db().metrics_db()) { in ComputeAnalysisResult()
243 op_stats.device_op_metrics_db().metrics_db()) { in ComputeAnalysisResult()
253 analysis.set_host_trace_level(op_stats.run_environment().host_trace_level()); in ComputeAnalysisResult()
[all …]
Dop_stats_to_pod_stats_test.cc54 void CreateOpStats(OpStats* op_stats) { in CreateOpStats() argument
55 PerCoreStepInfo* info = op_stats->mutable_step_db()->add_step_sequence(); in CreateOpStats()
77 CoreDetails& details = (*op_stats->mutable_core_id_to_details())[kCoreId]; in CreateOpStats()
82 OpStats op_stats; in TEST() local
83 CreateOpStats(&op_stats); in TEST()
84 PodStatsDatabase pod_stats_db = ConvertOpStatsToPodStats(op_stats); in TEST()
114 OpStats op_stats; in TEST() local
115 op_stats.mutable_step_db()->set_use_incomplete_step(true); in TEST()
116 PodStatsDatabase pod_stats_db = ConvertOpStatsToPodStats(op_stats); in TEST()
Dxplane_to_op_stats_test.cc72 OpStats op_stats = ConvertXSpaceToOpStats(space, options); in TEST() local
73 const PerfEnv& perf_env = op_stats.perf_env(); in TEST()
87 OpStats op_stats = ConvertXSpaceToOpStats(space, OpStatsOptions()); in TEST() local
88 const RunEnvironment& run_env = op_stats.run_environment(); in TEST()
120 OpStats op_stats = ConvertXSpaceToOpStats(space, options); in TEST() local
121 const StepDatabaseResult& step_db = op_stats.step_db(); in TEST()
160 OpStats op_stats = ConvertXSpaceToOpStats(space, options); in TEST() local
161 const StepDatabaseResult& step_db = op_stats.step_db(); in TEST()
166 op_stats.device_op_metrics_db().precision_stats(); in TEST()
177 OpStats op_stats = ConvertXSpaceToOpStats(space, OpStatsOptions()); in TEST() local
[all …]
Dop_stats_to_tf_stats.cc108 TfStatsDatabase ConvertOpStatsToTfStats(const OpStats& op_stats) { in ConvertOpStatsToTfStats() argument
109 const OpMetricsDb& host_tf_metrics_db = op_stats.host_op_metrics_db(); in ConvertOpStatsToTfStats()
111 CreateTfMetricsDbFromDeviceOpMetricsDb(op_stats.device_op_metrics_db()); in ConvertOpStatsToTfStats()
112 double ridge_point = op_stats.perf_env().ridge_point(); in ConvertOpStatsToTfStats()
114 GroupKernelReportsByOpName(op_stats.kernel_stats_db()); in ConvertOpStatsToTfStats()
122 tf_stats_db.set_device_type(op_stats.run_environment().device_type()); in ConvertOpStatsToTfStats()
Dop_stats_combiner.h56 OpStatsInfo(const OpStats* op_stats, HardwareType hardware_type, in OpStatsInfo()
58 : op_stats(op_stats), in OpStatsInfo()
61 const OpStats* op_stats; member
Dxplane_to_profile_response.cc100 OpStats op_stats = ConvertXSpaceToOpStats(xspace, options); in ConvertXSpaceToProfileResponse() local
102 OverviewPage overview_page_db = ConvertOpStatsToOverviewPage(op_stats); in ConvertXSpaceToProfileResponse()
110 ConvertOpStatsToInputPipelineAnalysis(op_stats), response); in ConvertXSpaceToProfileResponse()
113 TfStatsDatabase tf_stats_db = ConvertOpStatsToTfStats(op_stats); in ConvertXSpaceToProfileResponse()
117 AddToolData(ToolName(kKernelStats), op_stats.kernel_stats_db(), response); in ConvertXSpaceToProfileResponse()
Dop_stats_to_pod_stats.cc72 PodStatsDatabase ConvertOpStatsToPodStats(const OpStats& op_stats) { in ConvertOpStatsToPodStats() argument
74 const auto& core_id_map = op_stats.core_id_to_details(); in ConvertOpStatsToPodStats()
84 for (const auto& step_sequence : op_stats.step_db().step_sequence()) { in ConvertOpStatsToPodStats()
91 PopulateStepDiagnostics(op_stats, pod_stats_db.mutable_diagnostics()); in ConvertOpStatsToPodStats()
Dop_stats_to_overview_page.h57 OverviewPageAnalysis ComputeAnalysisResult(const OpStats& op_stats);
62 OverviewPage ConvertOpStatsToOverviewPage(const OpStats& op_stats);
Dop_stats_to_input_pipeline_analysis.h62 const OpStats& op_stats);
81 void AddErrorMessages(const OpStats& op_stats,
Dop_stats_to_tf_stats_test.cc127 const OpStats op_stats = ConvertXSpaceToOpStats(space, options); in TEST() local
128 const TfStatsDatabase tf_stats = ConvertOpStatsToTfStats(op_stats); in TEST()
130 EXPECT_EQ(tf_stats.device_type(), op_stats.run_environment().device_type()); in TEST()
Dop_stats_to_tf_stats.h25 TfStatsDatabase ConvertOpStatsToTfStats(const OpStats& op_stats);
Dop_stats_to_pod_viewer.h25 PodViewerDatabase ConvertOpStatsToPodViewer(const OpStats& op_stats);
Dop_stats_to_pod_stats.h25 PodStatsDatabase ConvertOpStatsToPodStats(const OpStats& op_stats);
Dxplane_to_op_stats.h41 OpStats* op_stats);
Dop_stats_to_input_pipeline_analysis.cc595 const OpStats& op_stats) { in ConvertOpStatsToInputPipelineAnalysis() argument
598 op_stats.step_db().step_sequence()); in ConvertOpStatsToInputPipelineAnalysis()
599 PopulateStepDiagnostics(op_stats, result.mutable_diagnostics()); in ConvertOpStatsToInputPipelineAnalysis()
601 ParseHardwareType(op_stats.run_environment().device_type()))); in ConvertOpStatsToInputPipelineAnalysis()
602 GenerateHostResult(op_stats.host_op_metrics_db(), &result); in ConvertOpStatsToInputPipelineAnalysis()
Dop_stats_combiner.cc203 &op_stats_info.op_stats->step_db(); in ComputeStepIntersectionToMergeOpStats()
245 *op_stats_info.op_stats, combined_op_stats, in CombineAllOpStats()
/external/tensorflow/tensorflow/core/profiler/protobuf/
DBUILD108 srcs = ["op_stats.proto"],