DynamicOutputRegister

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/Library File

  • Header file: #include <graph/operator.h>
  • Library file: libgraph.so

Function Usage

Registers the dynamic outputs of an operator.

Prototype

1
2
void DynamicOutputRegister(const char_t *name, const uint32_t num, bool is_push_back = true)
void DynamicOutputRegister(const char_t *name, const uint32_t num, const char_t *datatype_symbol, bool is_push_back = true)

Parameters

Parameter

Input/Output

Description

name

Input

Name of the dynamic output of an operator.

num

Input

Number of the dynamic outputs to be added.

datatype_symbol

Input

Data type of the dynamic outputs.

is_push_back

Input

  • true indicates that dynamic outputs are appended to the end.
  • false indicates that dynamic outputs are appended to the head.

Returns

None

Exception Handling

None

Constraints

None