Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
888b8b6b
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看板
未验证
提交
888b8b6b
编写于
3月 28, 2023
作者:
张
张春乔
提交者:
GitHub
3月 28, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][PLC0414] remove self-alias and some discussion (#52122)
上级
e7c249cb
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
14 addition
and
16 deletion
+14
-16
pyproject.toml
pyproject.toml
+1
-1
python/paddle/__init__.py
python/paddle/__init__.py
+1
-1
python/paddle/autograd/__init__.py
python/paddle/autograd/__init__.py
+2
-2
python/paddle/distributed/fleet/meta_optimizers/parameter_server_optimizer.py
...buted/fleet/meta_optimizers/parameter_server_optimizer.py
+1
-3
python/paddle/distribution/gumbel.py
python/paddle/distribution/gumbel.py
+1
-1
python/paddle/distribution/laplace.py
python/paddle/distribution/laplace.py
+1
-1
python/paddle/fluid/tests/unittests/ps/ps_dnn_trainer.py
python/paddle/fluid/tests/unittests/ps/ps_dnn_trainer.py
+1
-1
python/paddle/fluid/tests/unittests/test_get_set_flags.py
python/paddle/fluid/tests/unittests/test_get_set_flags.py
+1
-1
python/paddle/fluid/tests/unittests/test_global_var_getter_setter.py
...le/fluid/tests/unittests/test_global_var_getter_setter.py
+1
-1
python/paddle/incubate/autograd/primx.py
python/paddle/incubate/autograd/primx.py
+1
-1
python/paddle/incubate/autograd/utils.py
python/paddle/incubate/autograd/utils.py
+1
-1
python/paddle/incubate/distributed/fleet/parameter_server/distribute_transpiler/__init__.py
.../fleet/parameter_server/distribute_transpiler/__init__.py
+1
-1
setup.py
setup.py
+1
-1
未找到文件。
pyproject.toml
浏览文件 @
888b8b6b
...
...
@@ -120,7 +120,7 @@ select = [
# "B904",
# Pylint
#
"PLC0414",
"PLC0414"
,
# "PLC1901",
"PLC3002"
,
"PLE0100"
,
...
...
python/paddle/__init__.py
浏览文件 @
888b8b6b
...
...
@@ -42,7 +42,7 @@ from .fluid.lazy_init import LazyGuard # noqa: F401
from
.framework.dtype
import
iinfo
# noqa: F401
from
.framework.dtype
import
finfo
# noqa: F401
from
.framework.dtype
import
dtype
as
dtype
# noqa: F401
from
.framework.dtype
import
dtype
# noqa: F401
from
.framework.dtype
import
uint8
# noqa: F401
from
.framework.dtype
import
int8
# noqa: F401
from
.framework.dtype
import
int16
# noqa: F401
...
...
python/paddle/autograd/__init__.py
浏览文件 @
888b8b6b
...
...
@@ -19,8 +19,8 @@ from ..fluid.dygraph.base import is_grad_enabled # noqa: F401
from
..fluid.dygraph.base
import
set_grad_enabled
# noqa: F401
from
.
import
backward_mode
# noqa: F401
from
.backward_mode
import
backward
# noqa: F401
from
.py_layer
import
PyLayer
as
PyLayer
# noqa: F401
from
.py_layer
import
PyLayerContext
as
PyLayerContext
# noqa: F401
from
.py_layer
import
PyLayer
# noqa: F401
from
.py_layer
import
PyLayerContext
# noqa: F401
from
.saved_tensors_hooks
import
saved_tensors_hooks
__all__
=
[
# noqa
...
...
python/paddle/distributed/fleet/meta_optimizers/parameter_server_optimizer.py
浏览文件 @
888b8b6b
...
...
@@ -371,9 +371,7 @@ class ParameterServerOptimizer(MetaOptimizerBase):
_origin_main_program
=
loss
.
block
.
program
_origin_startup_program
=
startup_program
from
paddle.incubate.distributed.fleet.parameter_server.ir
import
(
public
as
public
,
)
from
paddle.incubate.distributed.fleet.parameter_server.ir
import
public
compiled_config
=
public
.
CompileTimeStrategy
(
_origin_main_program
,
...
...
python/paddle/distribution/gumbel.py
浏览文件 @
888b8b6b
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
paddle
from
paddle.distribution.transformed_distribution
import
TransformedDistribution
from
paddle.fluid
import
framework
as
framework
from
paddle.fluid
import
framework
class
Gumbel
(
TransformedDistribution
):
...
...
python/paddle/distribution/laplace.py
浏览文件 @
888b8b6b
...
...
@@ -18,7 +18,7 @@ import numpy as np
import
paddle
from
paddle.distribution
import
distribution
from
paddle.fluid
import
framework
as
framework
from
paddle.fluid
import
framework
class
Laplace
(
distribution
.
Distribution
):
...
...
python/paddle/fluid/tests/unittests/ps/ps_dnn_trainer.py
浏览文件 @
888b8b6b
...
...
@@ -445,7 +445,7 @@ class DnnTrainer:
"entering run {} - old"
.
format
(
str
(
config
[
"applied_pass_name"
]))
)
from
paddle.incubate.distributed.fleet.parameter_server.ir
import
(
public
as
public
,
public
,
)
dist_strategy
=
get_distributed_strategy
(
user_defined_strategy
)
...
...
python/paddle/fluid/tests/unittests/test_get_set_flags.py
浏览文件 @
888b8b6b
...
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
unittest
as
unittest
import
unittest
from
paddle
import
fluid
...
...
python/paddle/fluid/tests/unittests/test_global_var_getter_setter.py
浏览文件 @
888b8b6b
...
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
unittest
as
unittest
import
unittest
from
paddle
import
fluid
...
...
python/paddle/incubate/autograd/primx.py
浏览文件 @
888b8b6b
...
...
@@ -17,7 +17,7 @@ import typing
from
collections
import
OrderedDict
import
paddle
from
paddle.fluid
import
framework
as
framework
from
paddle.fluid
import
framework
from
paddle.fluid.core
import
prim_config
from
paddle.fluid.framework
import
Operator
,
default_main_program
from
paddle.incubate.autograd.utils
import
as_tensors
...
...
python/paddle/incubate/autograd/utils.py
浏览文件 @
888b8b6b
...
...
@@ -15,7 +15,7 @@ import typing
import
paddle
import
paddle.framework.dtype
as
dtypes
from
paddle.fluid
import
framework
as
framework
from
paddle.fluid
import
framework
from
.phi_ops_map
import
op_info
,
op_map
...
...
python/paddle/incubate/distributed/fleet/parameter_server/distribute_transpiler/__init__.py
浏览文件 @
888b8b6b
...
...
@@ -75,7 +75,7 @@ from paddle.incubate.distributed.fleet.parameter_server.ir import (
pserver_pass
as
server
,
)
from
paddle.incubate.distributed.fleet.parameter_server.ir
import
(
public
as
public
,
public
,
)
...
...
setup.py
浏览文件 @
888b8b6b
...
...
@@ -1485,7 +1485,7 @@ def main():
else
:
env_dict_path
=
TOP_DIR
+
"/build/python/"
sys
.
path
.
insert
(
1
,
env_dict_path
)
from
env_dict
import
env_dict
as
env_dict
from
env_dict
import
env_dict
global
env_dict
global
paddle_binary_dir
,
paddle_source_dir
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录