PRINTF("1 fmt string d %d\n", 6666); PRINTF("1 fmt string lf %lf\n", float(61.556));
ascendebug kernel --backend npu --repo-type ops_adv --repo-path ${repo_path} --json-file ${op_config_json_file} --core-type ${core_type} --dump-mode normal
其中--dump-mode用于设置上板打印模式,此处设为normal,开启通用打印方式,其他命令参数的配置与核函数NPU上板精度验证保持一致。
DumpTensor(srcLocal, 5, dataNum);
ascendebug kernel --backend npu --repo-type ops_adv --repo-path ${repo_path} --json-file ${op_config_json_file} --core-type ${core_type} --dump-mode normal
其中--dump-mode用于设置上板打印模式,此处设为normal,开启通用打印方式,其他命令参数的配置与核函数NPU上板精度验证保持一致。