autoincreased_step_counter¶
- api_attr
declarative programming (static graph)
-
paddle.fluid.layers.
autoincreased_step_counter
(counter_name=None, begin=1, step=1)[source] Create an auto-increase variable. which will be automatically increased by 1 in every iteration. By default, the first return of this counter is 1, and the step size is 1.
- Parameters
counter_name (str, optional) – The counter name. Default ‘@STEP_COUNTER@’.
begin (int, optional) – The first return value of this counter. Default 1.
step (int, optional) – The step size. Default 1.
- Returns
The auto-increased Variable with data type int64.
- Return type
Variable
Examples
import paddle.fluid as fluid global_step = fluid.layers.autoincreased_step_counter( counter_name='@LR_DECAY_COUNTER@', begin=0, step=1)