昇腾社区首页
中文
注册

结果文件说明

结果文件说明

单算子比对默认比对指定算子数据的绝对误差和相对误差,根据指定比对算子的输入或输出数据以及设置的输出文件形式生成比对结果文件如表1

表1 结果文件形式

结果文件输出条件

结果文件

比对输入数据

--input_tensor

单算子比对概要结果:“{op_name}_input_{index}_summary.txt”

单算子比对详细结果:“{op_name}_input_{index}_{file_index}.csv”

比对输出数据

--output_tensor

单算子比对概要结果:“{op_name}_output_{index}_summary.txt”

单算子比对详细结果:“{op_name}_output_{index}_{file_index}.csv”

比对输入数据、生成前n项数据

--input_tensor、--topn

单算子比对概要结果:“{op_name}_input_{index}_summary.txt”

单算子比对详细结果:

  • 绝对误差:{op_name}_input_{index}_absolute_error_topn.csv
  • 相对误差:{op_name}_input_{index}_relative_error_topn.csv

比对输出数据、生成前n项数据

--output_tensor、--topn

单算子比对概要结果:“{op_name}_output_{index}_summary.txt”

单算子比对详细结果:

  • 绝对误差:{op_name}_output_{index}_absolute_error_topn.csv
  • 相对误差:{op_name}_output_{index}_relative_error_topn.csv

比对输入数据、不生成详细比对数据

--input_tensor、--ignore_single_op_result

单算子比对概要结果:“{op_name}_input_{index}_summary.txt”

比对输出数据、不生成详细比对数据

--output_tensor、--ignore_single_op_result

单算子比对概要结果:“{op_name}_output_{index}_summary.txt”

比对输入数据、配置单个csv文件包含最大文件条数

--input_tensor、--max_line

单算子比对概要结果:“{op_name}_input_{index}_summary.txt”

单算子比对详细结果:“{op_name}_input_{index}_{file_index}_n.csv”

比对输出数据、配置单个csv文件包含最大文件条数

--output_tensor、--max_line

单算子比对概要结果:“{op_name}_output_{index}_summary.txt”

单算子比对详细结果:“{op_name}_output_{index}_{file_index}_xxx.csv”

注:--topn、--ignore_single_op_result和--max_line三个参数功能相互影响。

  • 设置--ignore_single_op_result时另外两个参数不生效。
  • 设置--topn时,不建议同时设置--ignore_single_op_result参数且--max_line参数不生效。
  • 设置--max_line时,不建议同时设置--topn和--ignore_single_op_result参数。