构造算子信息对象。
def create_debug_op(op_type: str, core_type: str, chip_version: str) -> DebugOp
参数名 |
输入/输出 |
说明 |
---|---|---|
op_type |
输入 |
字符串类型,算子名称,例如'AddCustom'。 |
core_type |
输入 |
字符串类型,算子core类型,请根据算子实际情况设置。可选值为Aicore、MixCore、CubeCore、VectorCore、MixVectorCore,MixVectorCore为预留参数,开发者无需关注。 |
chip_version |
输入 |
昇腾AI处理器的版本。 若为“”或None,工具会自动获取,也支持手动设置,查询方法如下:
|
返回DebugOp类型的实例对象。
import ascendebug debug_op = ascendebug.create_debug_op('OpCustom', 'VectorCore', '${chip_version}')
在调用调测API前,先调用本接口生成算子基本信息管理类对象。