提交 1c53682c 编写于 作者: C chenchao99

adapte the aicpu update

上级 83c104c4
......@@ -262,9 +262,8 @@ class AicpuAnalyser(BaseAnalyser):
Raises:
ProfilerPathErrorException: If the profiling dir is invalid.
"""
_col_names = ['serial_number', 'op_name', 'total_time', 'dispatch_time',
'RunV2_start', 'compute_start', 'memcpy_start', 'memcpy_end',
'RunV2_end']
_col_names = ['serial_number', 'op_type', 'total_time', 'dispatch_time',
'run_start', 'run_end']
_file_name_aicpu_time = 'aicpu_intermediate_{}.csv'
def _load(self):
......@@ -306,4 +305,4 @@ class AicpuAnalyser(BaseAnalyser):
list[Union[str, float]], the converted data.
"""
return [int(row[0]), row[1], float(row[2]), float(row[3]), int(row[4]),
int(row[5]), int(row[6]), int(row[7]), int(row[8])]
int(row[5])]
......@@ -33,9 +33,8 @@ class Integrator:
_header_aicore_type = ['op_type', 'execution_time', 'execution_frequency',
'percent']
_header_aicore_detail = ['full_op_name', 'execution_time']
_header_aicpu = ['serial_number', 'op_name', 'total_time', 'dispatch_time',
'RunV2_start', 'compute_start', 'memcpy_start',
'memcpy_end', 'RunV2_end']
_header_aicpu = ['serial_number', 'op_type', 'total_time', 'dispatch_time',
'run_start', 'run_end']
def __init__(self, profiling_dir, device_id):
self._profiling_dir = profiling_dir
......
......@@ -25,8 +25,8 @@ from mindinsight.profiler.common.log import logger as log
AICORE_TYPE_COL = ["op_type", "execution_time", "execution_frequency", "precent"]
AICORE_DETAIL_COL = ["op_name", "op_type", "execution_time", "subgraph", "full_op_name"]
AICPU_COL = ["serial_number", "op_name", "total_time", "dispatch_time", "RunV2_start",
"compute_start", "memcpy_start", "memcpy_end", "RunV2_end"]
AICPU_COL = ["serial_number", "op_type", "total_time", "dispatch_time", "run_start",
"run_end"]
MINDDATA_PIPELINE_COL = [
'op_id', 'op_type', 'num_workers', 'output_queue_average_size',
'output_queue_length', 'output_queue_usage_rate', 'sample_interval',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册