函数:set_exec_config_opt
C函数原型 |
aclError aclmdlSetExecConfigOpt(aclmdlExecConfigHandle *handle, aclmdlExecConfigAttr attr, const void *attrValue, size_t valueSize) |
---|---|
Python函数 |
ret = acl.mdl.set_exec_config_opt(handle, attr, attrValue) |
函数功能 |
设置模型执行的配置对象中的各属性的取值。 |
输入说明 |
handle:int,模型执行的配置对象的指针地址。需提前调用acl.mdl.create_exec_config_handle接口创建该对象的指针地址。 attr:int,指定需设置的属性。具体请参见aclmdlExecConfigAttr。 attrValue:int,“attr”对应的属性取值。 |
返回值说明 |
ret:int,错误码。
|
约束说明 |
本接口需要配合其它接口一起使用,实现模型执行,接口调用顺序如下:
|
父主题: 模型执行