文档
注册

create_op_executor

函数功能

构造算子调试对象,初始化工作空间。

函数原型

def create_op_executor(debug_op: DebugOp, work_dir: str = '', install_path: str = '') -> OpExecutor

参数说明

参数名

输入/输出

说明

debug_op

输入

DebugOp类型的对象,详细说明参见DebugOp类

work_dir

输入

str类型,调测工作空间,用于存放调测中各种临时文件、结果文件。缺省默认值为当前执行路径下的debug_workspace文件夹。

install_path

输入

str类型,CANN安装包路径,缺省时会根据当前环境变量自动识别安装包路径。

返回值

返回OpExecutor类的实例对象。

使用说明

import ascendebug
op_executor = ascendebug.create_op_executor(debug_op=debug_op)

注意事项

在调用API调测接口前,先调用本接口初始化工作空间。

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词