SetNeedIteration
Description
Enables iterative execution of a graph.
Prototype
void SetNeedIteration(bool need_iteration);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
need_iteration |
Input |
Iterative execution enable.
|
Returns
None
Exception Handling
None
Restrictions
This API must be used in conjunction 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 Construction APIs