AddChangedResourceKey

Description

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

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.

Restrictions

None