RegisterReliedOnResourceKey
Description
Registers the dependent resources.
It is generally called by operators of the read type, for example, stack pop. This API registers the key of the dependent resource because the shape of operators of the read type depends on the resource operator.
If the shape of the resource operator changes, the operator of the read type performs inference again.
Prototype
graphStatus RegisterReliedOnResourceKey(const ge::AscendString &key)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
key |
Input |
Unique resource key. |
Returns
graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.
Restrictions
None
Parent topic: InferenceContext