diff --git a/python/paddle/tensor/manipulation.py b/python/paddle/tensor/manipulation.py index 8d2bfa2a2cb64c544eb7ada12fb43e8e551d2a8d..6c4b1cd22b0efe7d09a34595a2d8255be595b6ad 100755 --- a/python/paddle/tensor/manipulation.py +++ b/python/paddle/tensor/manipulation.py @@ -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)