AddChangedResourceKey
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File
#include <graph/inference_context.h>
Function Usage
Notifies the framework of the resource shape changes during the inference run by the resource operators of the write type, such as stack push.
The framework triggers the corresponding reading operator (for example, stack pop) to perform inference again based on the changed resource key.
Prototype
1 | graphStatus AddChangedResourceKey(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