Skip to content

Commit c34d2af

Browse files
committed
revert tensor/attribute.py
1 parent 0f0abcd commit c34d2af

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

python/paddle/tensor/attribute.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# TODO: define functions to get tensor attributes
16-
17-
import numpy as np
15+
from ..framework import core
16+
from ..framework import LayerHelper
17+
from ..fluid.data_feeder import check_variable_and_dtype
18+
from ..fluid.data_feeder import check_type
1819

20+
from .creation import assign
21+
from .creation import _complex_to_real_dtype
1922

23+
# TODO: define functions to get tensor attributes
2024
import paddle
2125
from paddle import _C_ops, _legacy_C_ops
22-
23-
from ..fluid.data_feeder import check_type, check_variable_and_dtype
24-
from ..fluid.framework import _in_legacy_dygraph, in_dygraph_mode
25-
from ..framework import LayerHelper, core
2626
from ..static import Variable
27-
from .creation import _complex_to_real_dtype, assign
27+
from ..fluid.framework import _in_legacy_dygraph, in_dygraph_mode
28+
29+
import numpy as np
2830

2931
__all__ = []
3032

0 commit comments

Comments
 (0)