下载
中文
注册

函数:set_attr_int

C函数原型

aclError aclopSetAttrInt(aclopAttr *attr, const char *attrName, int64_t attrValue);

Python函数

ret = acl.op.set_attr_int(attr, attr_name, attr_value)

函数功能

设置int64_t类型标量的属性值,同步接口。

输入说明

attr:int,acl算子属性地址对象, 此对象使用调用acl.op.create_attr创建。

attr_name:str,属性名。

attr_value:int,属性值。

返回值说明

ret:int,错误码。

  • 返回0表示成功。
  • 返回其它值表示失败。

约束说明