1 | torch_npu.profiler.profiler.analyse(profiler_path="", max_process_number=max_process_number) |
提供对Ascend PyTorch Profiler采集的性能数据进行离线解析。
创建{file_name}.py文件,{file_name}自定义,并编辑如下代码:
1 2 3 4 | from torch_npu.profiler.profiler import analyse if __name__ == "__main__": analyse(profiler_path="./result_data", max_process_number=max_process_number) |