Skip to content

Commit

Permalink
fix test_layers, test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tink2123 committed Aug 13, 2020
1 parent f6ac45c commit a2a22f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/paddle/fluid/layers/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -7475,7 +7475,8 @@ def _is_list_or_turple_(data):
elif isinstance(scale, float) or isinstance(scale, int):
if scale <= 0:
raise ValueError("Attr(scale) should be greater than zero.")
attrs['scale'] = float(scale)
attrs['scale_w'] = attrs['scale_h'] = attrs['scale_d'] = float(
scale)
else:
raise TypeError(
"Attr(scale)'s type should be float, int or Variable.")
Expand Down

0 comments on commit a2a22f5

Please sign in to comment.