Skip to content

Commit

Permalink
remove additional warnning in layer.to
Browse files Browse the repository at this point in the history
  • Loading branch information
JiabinYang committed Oct 25, 2021
1 parent 3fd7e25 commit 7d00f1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/paddle/fluid/dygraph/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,7 @@ def transform(t, device, dtype, blocking):
device = t.place
if dtype is None:
dtype = t.dtype

new_t = t._copy_to(device, blocking)
if isinstance(t, framework.ParamBase):
if dtype is not None and dtype != t.dtype:
Expand Down

1 comment on commit 7d00f1a

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.