Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
a5ce223c
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
a5ce223c
编写于
10月 11, 2022
作者:
N
Nyakku Shigure
提交者:
GitHub
10月 11, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][F401] remove unused imports in python/paddle (#46731)
上级
5a575859
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
17 addition
and
29 deletion
+17
-29
python/paddle/_C_ops.py
python/paddle/_C_ops.py
+0
-1
python/paddle/check_import_scipy.py
python/paddle/check_import_scipy.py
+1
-1
python/paddle/common_ops_import.py
python/paddle/common_ops_import.py
+12
-15
python/paddle/fft.py
python/paddle/fft.py
+1
-1
python/paddle/nn/functional/extension.py
python/paddle/nn/functional/extension.py
+1
-2
python/paddle/signal.py
python/paddle/signal.py
+1
-3
python/paddle/tensor/einsum.py
python/paddle/tensor/einsum.py
+0
-2
python/paddle/tensor/linalg.py
python/paddle/tensor/linalg.py
+0
-1
python/paddle/tensor/math.py
python/paddle/tensor/math.py
+0
-1
python/paddle/tensor/search.py
python/paddle/tensor/search.py
+1
-2
未找到文件。
python/paddle/_C_ops.py
浏览文件 @
a5ce223c
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
from
paddle.fluid
import
core
from
.fluid
import
framework
__all__
=
[]
...
...
python/paddle/check_import_scipy.py
浏览文件 @
a5ce223c
...
...
@@ -17,7 +17,7 @@ def check_import_scipy(OsName):
print_info
=
""
if
OsName
==
'nt'
:
try
:
import
scipy.io
as
scio
import
scipy.io
as
scio
# noqa: F401
except
ImportError
as
e
:
print_info
=
str
(
e
)
if
(
len
(
print_info
)
>
0
):
...
...
python/paddle/common_ops_import.py
浏览文件 @
a5ce223c
...
...
@@ -11,18 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
six.moves
import
reduce
from
paddle.fluid.layer_helper
import
LayerHelper
from
paddle.fluid.param_attr
import
ParamAttr
from
paddle.fluid.framework
import
convert_np_dtype_to_dtype_
,
_non_static_mode
,
_varbase_creator
,
in_dygraph_mode
,
_in_legacy_dygraph
from
paddle.fluid.framework
import
device_guard
,
default_main_program
,
dygraph_only
,
_dygraph_tracer
from
paddle.fluid.framework
import
OpProtoHolder
,
Variable
from
paddle.fluid.initializer
import
Constant
from
paddle.fluid.core
import
VarDesc
from
paddle.fluid
import
core
,
dygraph_utils
from
paddle.fluid.data_feeder
import
check_type
,
check_dtype
,
check_variable_and_dtype
,
convert_dtype
from
paddle.fluid.layers
import
fill_constant
,
utils
,
scale
from
paddle.tensor.layer_function_generator
import
templatedoc
import
paddle.fluid
as
fluid
import
numpy
import
warnings
from
paddle.fluid.layer_helper
import
LayerHelper
# noqa: F401
from
paddle.fluid.param_attr
import
ParamAttr
# noqa: F401
from
paddle.fluid.framework
import
convert_np_dtype_to_dtype_
,
_non_static_mode
,
_varbase_creator
,
in_dygraph_mode
,
_in_legacy_dygraph
# noqa: F401
from
paddle.fluid.framework
import
device_guard
,
default_main_program
,
dygraph_only
,
_dygraph_tracer
# noqa: F401
from
paddle.fluid.framework
import
OpProtoHolder
,
Variable
# noqa: F401
from
paddle.fluid.initializer
import
Constant
# noqa: F401
from
paddle.fluid.core
import
VarDesc
# noqa: F401
from
paddle.fluid
import
core
,
dygraph_utils
# noqa: F401
from
paddle.fluid.data_feeder
import
check_type
,
check_dtype
,
check_variable_and_dtype
,
convert_dtype
# noqa: F401
from
paddle.fluid.layers
import
fill_constant
,
utils
,
scale
# noqa: F401
from
paddle.tensor.layer_function_generator
import
templatedoc
# noqa: F401
import
paddle.fluid
as
fluid
# noqa: F401
python/paddle/fft.py
浏览文件 @
a5ce223c
...
...
@@ -15,7 +15,7 @@
from
typing
import
Sequence
import
numpy
as
np
import
paddle
from
.tensor.attribute
import
is_
complex
,
is_
floating_point
,
is_integer
from
.tensor.attribute
import
is_floating_point
,
is_integer
from
.tensor.creation
import
_real_to_complex_dtype
,
_complex_to_real_dtype
from
.fluid.framework
import
_in_legacy_dygraph
,
in_dygraph_mode
from
.
import
_C_ops
,
_legacy_C_ops
...
...
python/paddle/nn/functional/extension.py
浏览文件 @
a5ce223c
...
...
@@ -25,8 +25,7 @@ from paddle import in_dynamic_mode
from
paddle
import
_C_ops
,
_legacy_C_ops
from
...fluid.framework
import
_non_static_mode
,
_in_legacy_dygraph
,
in_dygraph_mode
from
...fluid.data_feeder
import
check_variable_and_dtype
,
check_type
from
...framework
import
core
from
...common_ops_import
import
convert_np_dtype_to_dtype_
from
...framework
import
core
,
convert_np_dtype_to_dtype_
__all__
=
[]
...
...
python/paddle/signal.py
浏览文件 @
a5ce223c
...
...
@@ -12,11 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
typing
import
Optional
import
paddle
from
.tensor.attribute
import
is_complex
,
is_floating_point
from
.tensor.attribute
import
is_complex
from
.fft
import
fft_r2c
,
fft_c2r
,
fft_c2c
from
.fluid.data_feeder
import
check_variable_and_dtype
from
.fluid.framework
import
_non_static_mode
...
...
python/paddle/tensor/einsum.py
浏览文件 @
a5ce223c
...
...
@@ -29,8 +29,6 @@ import collections
import
string
import
opt_einsum
from
paddle.common_ops_import
import
dygraph_only
__all__
=
[]
...
...
python/paddle/tensor/linalg.py
浏览文件 @
a5ce223c
...
...
@@ -25,7 +25,6 @@ from .creation import full
import
paddle
import
warnings
from
paddle.common_ops_import
import
core
from
paddle.common_ops_import
import
VarDesc
from
paddle
import
_C_ops
,
_legacy_C_ops
...
...
python/paddle/tensor/math.py
浏览文件 @
a5ce223c
...
...
@@ -18,7 +18,6 @@ import numpy as np
from
paddle.common_ops_import
import
VarDesc
from
paddle.common_ops_import
import
dygraph_only
from
paddle.common_ops_import
import
OpProtoHolder
from
paddle.common_ops_import
import
templatedoc
from
paddle.common_ops_import
import
dygraph_utils
...
...
python/paddle/tensor/search.py
浏览文件 @
a5ce223c
...
...
@@ -13,12 +13,11 @@
# limitations under the License.
import
numpy
as
np
import
paddle
from
..framework
import
LayerHelper
from
..framework
import
LayerHelper
,
convert_np_dtype_to_dtype_
from
..fluid.data_feeder
import
check_variable_and_dtype
,
check_type
,
check_dtype
from
..fluid
import
layers
from
..framework
import
core
,
in_dygraph_mode
,
_non_static_mode
from
..fluid.framework
import
_in_legacy_dygraph
from
paddle.common_ops_import
import
convert_np_dtype_to_dtype_
from
paddle.common_ops_import
import
Variable
from
paddle.common_ops_import
import
VarDesc
from
paddle
import
_C_ops
,
_legacy_C_ops
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录