未验证 提交 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 @@ ...@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # 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.fluid.data_feeder import check_variable_and_dtype
from paddle import _C_ops, _legacy_C_ops from paddle import _C_ops, _legacy_C_ops
from paddle.fluid.framework import _in_legacy_dygraph, in_dygraph_mode from paddle.fluid.framework import _in_legacy_dygraph, in_dygraph_mode
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
import numpy as np import numpy as np
from paddle.fluid.layer_helper import LayerHelper 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.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 paddle import _C_ops, _legacy_C_ops
from .utils import convert_out_size_to_list, get_out_size_tensor_inputs, reshape_lhs_rhs from .utils import convert_out_size_to_list, get_out_size_tensor_inputs, reshape_lhs_rhs
......
...@@ -16,8 +16,7 @@ import paddle ...@@ -16,8 +16,7 @@ import paddle
from paddle.fluid.layer_helper import LayerHelper from paddle.fluid.layer_helper import LayerHelper
from paddle.fluid.framework import _non_static_mode, Variable from paddle.fluid.framework import _non_static_mode, Variable
from paddle.fluid.data_feeder import check_variable_and_dtype from paddle.fluid.data_feeder import check_variable_and_dtype
from paddle.fluid import core from paddle import _legacy_C_ops
from paddle import _C_ops, _legacy_C_ops
__all__ = [] __all__ = []
......
...@@ -12,11 +12,10 @@ ...@@ -12,11 +12,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import paddle
from paddle.fluid.layer_helper import LayerHelper from paddle.fluid.layer_helper import LayerHelper
from paddle.fluid.framework import _non_static_mode from paddle.fluid.framework import _non_static_mode
from paddle.fluid.data_feeder import check_variable_and_dtype 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__ = [] __all__ = []
......
...@@ -33,7 +33,7 @@ from paddle.fluid import ( ...@@ -33,7 +33,7 @@ from paddle.fluid import (
) )
from paddle.fluid.io import prepend_feed_ops, append_fetch_ops from paddle.fluid.io import prepend_feed_ops, append_fetch_ops
from paddle.fluid.framework import static_only, Parameter 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 from paddle.fluid.log_helper import get_logger
__all__ = [] __all__ = []
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
# limitations under the License. # limitations under the License.
import os import os
import io
import tarfile import tarfile
import numpy as np import numpy as np
from PIL import Image from PIL import Image
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os
import gzip import gzip
import struct import struct
import numpy as np import numpy as np
......
...@@ -14,13 +14,11 @@ ...@@ -14,13 +14,11 @@
import numpy as np import numpy as np
from ..fluid.layer_helper import LayerHelper from ..fluid.layer_helper import LayerHelper
from ..fluid.data_feeder import check_variable_and_dtype, check_type, check_dtype from ..fluid.data_feeder import check_type, check_variable_and_dtype
from ..fluid import core, layers
from ..fluid.layers import nn, utils from ..fluid.layers import nn, utils
from ..nn import Layer, Conv2D, Sequential, ReLU, BatchNorm2D from ..nn import Layer, Conv2D, Sequential, ReLU, BatchNorm2D
from ..fluid.initializer import Normal from ..fluid.initializer import Normal
from ..fluid.framework import _non_static_mode, in_dygraph_mode, _in_legacy_dygraph 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 paddle import _C_ops, _legacy_C_ops
from ..framework import _current_expected_place from ..framework import _current_expected_place
......
...@@ -12,15 +12,11 @@ ...@@ -12,15 +12,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import sys
import math import math
import numbers import numbers
import warnings
import collections
import numpy as np import numpy as np
from PIL import Image from PIL import Image
from numpy import sin, cos, tan
import paddle import paddle
from . import functional_pil as F_pil from . import functional_pil as F_pil
......
...@@ -15,11 +15,9 @@ ...@@ -15,11 +15,9 @@
import sys import sys
import math import math
import numbers import numbers
import warnings
import collections import collections
import numpy as np import numpy as np
from numpy import sin, cos, tan
import paddle import paddle
from paddle.utils import try_import from paddle.utils import try_import
......
...@@ -13,14 +13,11 @@ ...@@ -13,14 +13,11 @@
# limitations under the License. # limitations under the License.
import sys import sys
import math
import numbers import numbers
import warnings
import collections import collections
from PIL import Image, ImageOps, ImageEnhance from PIL import Image, ImageOps, ImageEnhance
import numpy as np import numpy as np
from numpy import sin, cos, tan
import paddle import paddle
if sys.version_info < (3, 3): if sys.version_info < (3, 3):
......
...@@ -18,9 +18,6 @@ import numbers ...@@ -18,9 +18,6 @@ import numbers
import paddle import paddle
import paddle.nn.functional as F import paddle.nn.functional as F
import sys
import collections
__all__ = [] __all__ = []
......
...@@ -18,13 +18,10 @@ import random ...@@ -18,13 +18,10 @@ import random
import numpy as np import numpy as np
import numbers import numbers
import types
import collections import collections
import warnings
import traceback import traceback
import paddle import paddle
from paddle.utils import try_import
from . import functional as F from . import functional as F
if sys.version_info < (3, 3): if sys.version_info < (3, 3):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册