RegisterReliedOnResourceKey
产品支持情况
头文件
#include <graph/inference_context.h>
功能说明
注册依赖的资源。
一般由读类型的算子调用,如stack pop。因读类型算子的shape依赖资源算子,调用该接口注册依赖的资源标识。
若资源算子shape变化可触发读类型算子的重新推导。
函数原型
graphStatus RegisterReliedOnResourceKey(const ge::AscendString &key)
参数说明
返回值说明
graphStatus类型:GRAPH_SUCCESS,代表成功;GRAPH_FAILED,代表失败。
约束说明
无。