未验证 提交 2d3b0c49 编写于 作者: S Shuangchi He 提交者: GitHub

[CodeStyle][F401] remove unused imports in...

[CodeStyle][F401] remove unused imports in python_paddle/io_costmodel_geometric_vision_static. (#46755)
Signed-off-by: 洞幺01's avatarYulv-git <yulvchi@qq.com>
Signed-off-by: 洞幺01's avatarYulv-git <yulvchi@qq.com>
上级 6ba67969
......@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from paddle.fluid.layer_helper import LayerHelper, _non_static_mode
from paddle.fluid.layer_helper import LayerHelper
from paddle.fluid.data_feeder import check_variable_and_dtype
from paddle import _C_ops, _legacy_C_ops
from paddle.fluid.framework import _in_legacy_dygraph, in_dygraph_mode
......
......@@ -14,9 +14,9 @@
import numpy as np
from paddle.fluid.layer_helper import LayerHelper
from paddle.fluid.framework import _non_static_mode, _in_legacy_dygraph, in_dygraph_mode
from paddle.fluid.framework import _in_legacy_dygraph, in_dygraph_mode
from paddle.fluid.framework import Variable
from paddle.fluid.data_feeder import check_variable_and_dtype, check_type, check_dtype, convert_dtype
from paddle.fluid.data_feeder import check_dtype, check_type, check_variable_and_dtype
from paddle import _C_ops, _legacy_C_ops
from .utils import convert_out_size_to_list, get_out_size_tensor_inputs, reshape_lhs_rhs
......
......@@ -16,8 +16,7 @@ import paddle
from paddle.fluid.layer_helper import LayerHelper
from paddle.fluid.framework import _non_static_mode, Variable
from paddle.fluid.data_feeder import check_variable_and_dtype
from paddle.fluid import core
from paddle import _C_ops, _legacy_C_ops
from paddle import _legacy_C_ops
__all__ = []
......
......@@ -12,11 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import paddle
from paddle.fluid.layer_helper import LayerHelper
from paddle.fluid.framework import _non_static_mode
from paddle.fluid.data_feeder import check_variable_and_dtype
from paddle import _C_ops, _legacy_C_ops
from paddle import _legacy_C_ops
__all__ = []
......
......@@ -33,7 +33,7 @@ from paddle.fluid import (
)
from paddle.fluid.io import prepend_feed_ops, append_fetch_ops
from paddle.fluid.framework import static_only, Parameter
from paddle.fluid.executor import Executor, global_scope
from paddle.fluid.executor import global_scope
from paddle.fluid.log_helper import get_logger
__all__ = []
......
......@@ -13,7 +13,6 @@
# limitations under the License.
import os
import io
import tarfile
import numpy as np
from PIL import Image
......
......@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import gzip
import struct
import numpy as np
......
......@@ -14,13 +14,11 @@
import numpy as np
from ..fluid.layer_helper import LayerHelper
from ..fluid.data_feeder import check_variable_and_dtype, check_type, check_dtype
from ..fluid import core, layers
from ..fluid.data_feeder import check_type, check_variable_and_dtype
from ..fluid.layers import nn, utils
from ..nn import Layer, Conv2D, Sequential, ReLU, BatchNorm2D
from ..fluid.initializer import Normal
from ..fluid.framework import _non_static_mode, in_dygraph_mode, _in_legacy_dygraph
from paddle.common_ops_import import *
from paddle import _C_ops, _legacy_C_ops
from ..framework import _current_expected_place
......
......@@ -12,15 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
import math
import numbers
import warnings
import collections
import numpy as np
from PIL import Image
from numpy import sin, cos, tan
import paddle
from . import functional_pil as F_pil
......
......@@ -15,11 +15,9 @@
import sys
import math
import numbers
import warnings
import collections
import numpy as np
from numpy import sin, cos, tan
import paddle
from paddle.utils import try_import
......
......@@ -13,14 +13,11 @@
# limitations under the License.
import sys
import math
import numbers
import warnings
import collections
from PIL import Image, ImageOps, ImageEnhance
import numpy as np
from numpy import sin, cos, tan
import paddle
if sys.version_info < (3, 3):
......
......@@ -18,9 +18,6 @@ import numbers
import paddle
import paddle.nn.functional as F
import sys
import collections
__all__ = []
......
......@@ -18,13 +18,10 @@ import random
import numpy as np
import numbers
import types
import collections
import warnings
import traceback
import paddle
from paddle.utils import try_import
from . import functional as F
if sys.version_info < (3, 3):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册