/external/tensorflow/tensorflow/core/profiler/utils/ |
D | diagnostics.cc | 49 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 …]
|
D | diagnostics.h | 38 void PopulateStepDiagnostics(const OpStats& op_stats, Diagnostics* diag); 40 void PopulateOverviewDiagnostics(const OpStats& op_stats, Diagnostics* diag);
|
/external/tensorflow/tensorflow/core/profiler/convert/ |
D | xplane_to_op_stats.cc | 133 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 …]
|
D | op_stats_to_pod_viewer_test.cc | 55 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 …]
|
D | op_stats_to_pod_viewer.cc | 28 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()
|
D | op_stats_to_overview_page.cc | 174 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 …]
|
D | op_stats_to_pod_stats_test.cc | 54 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()
|
D | xplane_to_op_stats_test.cc | 72 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 …]
|
D | op_stats_to_tf_stats.cc | 108 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()
|
D | op_stats_combiner.h | 56 OpStatsInfo(const OpStats* op_stats, HardwareType hardware_type, in OpStatsInfo() 58 : op_stats(op_stats), in OpStatsInfo() 61 const OpStats* op_stats; member
|
D | xplane_to_profile_response.cc | 100 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()
|
D | op_stats_to_pod_stats.cc | 72 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()
|
D | op_stats_to_overview_page.h | 57 OverviewPageAnalysis ComputeAnalysisResult(const OpStats& op_stats); 62 OverviewPage ConvertOpStatsToOverviewPage(const OpStats& op_stats);
|
D | op_stats_to_input_pipeline_analysis.h | 62 const OpStats& op_stats); 81 void AddErrorMessages(const OpStats& op_stats,
|
D | op_stats_to_tf_stats_test.cc | 127 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()
|
D | op_stats_to_tf_stats.h | 25 TfStatsDatabase ConvertOpStatsToTfStats(const OpStats& op_stats);
|
D | op_stats_to_pod_viewer.h | 25 PodViewerDatabase ConvertOpStatsToPodViewer(const OpStats& op_stats);
|
D | op_stats_to_pod_stats.h | 25 PodStatsDatabase ConvertOpStatsToPodStats(const OpStats& op_stats);
|
D | xplane_to_op_stats.h | 41 OpStats* op_stats);
|
D | op_stats_to_input_pipeline_analysis.cc | 595 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()
|
D | op_stats_combiner.cc | 203 &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/ |
D | BUILD | 108 srcs = ["op_stats.proto"],
|