RegisterReliedOnResourceKey

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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