RegisterReliedOnResourceKey
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File
#include <graph/inference_context.h>
Function Usage
Registers dependent resources.
This API is generally called by operators of the read type, such as stack pop. This API registers the key of a 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
1 | 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.
Constraints
None
Parent topic: InferenceContext