Skip to content

Commit

Permalink
remove import reshape. test=develop
Browse files Browse the repository at this point in the history
Change-Id: Ic5074bd843ebdf754ff86117f7795a77c7fef8d5
  • Loading branch information
liym27 committed Aug 18, 2020
1 parent 3799723 commit f3dfc2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/paddle/tensor/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from __future__ import print_function

from ..fluid.layers import core, reshape
from ..fluid.layers import core
from ..fluid.layer_helper import LayerHelper
from ..fluid.framework import Variable, OpProtoHolder, in_dygraph_mode, convert_np_dtype_to_dtype_
from ..fluid.data_feeder import convert_dtype, check_variable_and_dtype, check_type, check_dtype
Expand All @@ -23,7 +23,7 @@
import numpy as np
# TODO: define functions to manipulate a tensor
from ..fluid.layers import cast #DEFINE_ALIAS
from ..fluid.layers import reshape #DEFINE_ALIAS
from ..fluid.layers import expand_as #DEFINE_ALIAS
from ..fluid.layers import scatter #DEFINE_ALIAS
from ..fluid.layers import slice #DEFINE_ALIAS
from ..fluid.layers import strided_slice #DEFINE_ALIAS
Expand Down Expand Up @@ -998,8 +998,10 @@ def get_attr_expand_shape(list_expand_shape):
type='expand_v2', inputs=inputs, outputs={'Out': out}, attrs=attrs)
return out


broadcast_to = expand


def reshape(x, shape, name=None):
"""
:alias_main: paddle.reshape
Expand Down

1 comment on commit f3dfc2c

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