Skip to content

Commit cd11b1b

Browse files
committed
Set default value of y to None.
1 parent 869a6f9 commit cd11b1b

File tree

1 file changed

+1
-1
lines changed
  • python/paddle/fluid/layers

1 file changed

+1
-1
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3295,7 +3295,7 @@ def autoincreased_step_counter(counter_name=None, begin=1, step=1):
32953295
return counter
32963296

32973297

3298-
def lod_reset(x, y, target_lod=None):
3298+
def lod_reset(x, y=None, target_lod=None):
32993299
"""
33003300
LoD Reset Operator. Set LoD of **x** to a new one specified by **y** or
33013301
**target_lod**. When **y** provided, **y.lod** would be considered as target

0 commit comments

Comments
 (0)