Skip to content

Commit

Permalink
[Eager]Fix assert statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius84 committed Jul 15, 2022
1 parent 9181a99 commit a1bd809
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/paddle/tensor/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2853,8 +2853,7 @@ def tile(x, repeat_times, name=None):
"""
if in_dygraph_mode():
if isinstance(repeat_times, core.eager.Tensor):
assert (repeat_times.ndim == 1,
"Only support ndim == 1 while repeat_times is a Tensor.")
assert repeat_times.ndim == 1, "Only support ndim == 1 while repeat_times is a Tensor."
repeat_times = repeat_times.numpy().tolist()

return _C_ops.final_state_tile(x, repeat_times)
Expand Down

0 comments on commit a1bd809

Please sign in to comment.