Skip to content

Commit 703e11e

Browse files
committed
fix judgement
1 parent 2828dff commit 703e11e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/dygraph/dygraph_to_static/program_translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def _extract_indeed_params_buffers(class_instance):
627627
"""
628628
params = list(get_parameters(class_instance).values())
629629
buffers = list(get_buffers(class_instance).values())
630-
buffers = [buffer for buffer in buffers if len(buffer.shape) == 0]
630+
buffers = [buffer for buffer in buffers if len(buffer.shape) != 0]
631631

632632
return params + buffers
633633

0 commit comments

Comments
 (0)