向DebugOp对象中增加算子属性描述。
def attr(self, name: str, dtype: str, value: Any)
参数名 |
输入/输出 |
说明 |
---|---|---|
name |
输入 |
属性名。 |
dtype |
输入 |
attr值的类型。 |
value |
输入 |
具体的attr值。 |
返回DebugOp类型的自身实例对象。
import ascendebug ascendebug.create_debug_op('OpCustom', 'VectorCore', '${chip_version}').attr('attr1', 'uint32', 100)