SetNeedIteration
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <graph/graph.h>
- Library file: libgraph.so
Function Usage
Sets whether to iteratively execute a graph.
Prototype
1 | void SetNeedIteration(bool need_iteration) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
need_iteration |
Input |
Iterative execution flag. Value:
|
Returns
None
Constraints
This API must be used with npu_runconfig/iterations_per_loop, npu_runconfig/loop_cond, npu_runconfig/one, and npu_runconfig/zero. You need to construct variable operators named after npu_runconfig/iterations_per_loop, npu_runconfig/loop_cond, npu_runconfig/one, or npu_runconfig/zero.
Parent topic: Graph