Skip to content

Commit

Permalink
fix doc,test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
vslyu committed Oct 16, 2020
1 parent 1691a25 commit 4edb71a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/paddle/tensor/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def assign(x, output=None):
"""
The OP copies the :attr:`input` to the :attr:`output`.
The OP copies the :attr:`x` to the :attr:`output`.
Parameters:
x (Tensor|numpy.ndarray): A tensor or numpy ndarray, its data type supports
Expand Down Expand Up @@ -1165,8 +1165,8 @@ def assign(x, output=None):
values = [int(v) for v in x.flat]
else:
raise TypeError(
"When the type of 'input' in assign is numpy.ndarray, "
"the data type of 'input' must be bool, float32, int32 or int64, but "
"When the type of 'x' in assign is numpy.ndarray, "
"the data type of 'x' must be bool, float32, int32 or int64, but "
"received %s." % convert_dtype(dtype))
if x.size > 1024 * 1024:
raise ValueError("The size of input is too big. Please consider "
Expand Down

1 comment on commit 4edb71a

@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.