Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
f4a5fe95
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f4a5fe95
编写于
10月 13, 2022
作者:
N
Nyakku Shigure
提交者:
GitHub
10月 13, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][F401] fix incremental flake8 F401 and F541 issues (#46926)
上级
c72b3bfa
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
4 addition
and
26 deletion
+4
-26
python/paddle/distributed/communication/stream/reduce_scatter.py
...paddle/distributed/communication/stream/reduce_scatter.py
+2
-3
python/paddle/distributed/communication/stream/scatter.py
python/paddle/distributed/communication/stream/scatter.py
+2
-2
python/paddle/fluid/tests/unittests/collective/communication_stream_alltoall_api_dygraph.py
...s/collective/communication_stream_alltoall_api_dygraph.py
+0
-2
python/paddle/fluid/tests/unittests/collective/communication_stream_alltoall_single_api_dygraph.py
...ctive/communication_stream_alltoall_single_api_dygraph.py
+0
-2
python/paddle/fluid/tests/unittests/collective/test_communication_stream_alltoall_api.py
...ests/collective/test_communication_stream_alltoall_api.py
+0
-2
python/paddle/fluid/tests/unittests/collective/test_communication_stream_alltoall_single_api.py
...llective/test_communication_stream_alltoall_single_api.py
+0
-2
python/paddle/fluid/tests/unittests/collective/test_communication_stream_broadcast_api.py
...sts/collective/test_communication_stream_broadcast_api.py
+0
-2
python/paddle/fluid/tests/unittests/collective/test_communication_stream_reduce_api.py
...ttests/collective/test_communication_stream_reduce_api.py
+0
-2
python/paddle/fluid/tests/unittests/collective/test_communication_stream_reduce_scatter_api.py
...ollective/test_communication_stream_reduce_scatter_api.py
+0
-2
python/paddle/fluid/tests/unittests/collective/test_communication_stream_scatter_api.py
...tests/collective/test_communication_stream_scatter_api.py
+0
-2
python/paddle/fluid/tests/unittests/xpu/test_lookup_table_v2_op_xpu.py
.../fluid/tests/unittests/xpu/test_lookup_table_v2_op_xpu.py
+0
-1
python/paddle/nn/layer/rnn.py
python/paddle/nn/layer/rnn.py
+0
-1
python/paddle/tests/test_callback_visualdl.py
python/paddle/tests/test_callback_visualdl.py
+0
-1
tools/prune_for_jetson.py
tools/prune_for_jetson.py
+0
-1
tools/remove_grad_op_and_kernel.py
tools/remove_grad_op_and_kernel.py
+0
-1
未找到文件。
python/paddle/distributed/communication/stream/reduce_scatter.py
浏览文件 @
f4a5fe95
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
import
paddle
import
paddle.distributed
as
dist
import
paddle.fluid.framework
as
framework
from
paddle.distributed.communication.group
import
_get_global_group
from
paddle.distributed.communication.reduce
import
_get_reduce_op
,
ReduceOp
...
...
@@ -30,11 +29,11 @@ def _check_tensor_shape(tensor, shape, nranks=1):
def
_check_tensor_list_shape
(
tensor_list
,
shape
,
nranks
=
1
):
if
len
(
tensor_list
)
!=
nranks
:
raise
RuntimeError
(
f
"The tensor_list for reduce_scatter is not correctly-sized."
)
"The tensor_list for reduce_scatter is not correctly-sized."
)
for
tensor
in
tensor_list
:
if
tensor
.
shape
!=
shape
:
raise
RuntimeError
(
f
"The tensor_list for reduce_scatter is not correctly-sized."
)
"The tensor_list for reduce_scatter is not correctly-sized."
)
def
_reduce_scatter_tensor_in_dygraph
(
out_tensor
,
...
...
python/paddle/distributed/communication/stream/scatter.py
浏览文件 @
f4a5fe95
...
...
@@ -28,11 +28,11 @@ def _check_tensor_shape(tensor, shape, nranks=1):
def
_check_tensor_list_shape
(
tensor_list
,
shape
,
nranks
=
1
):
if
len
(
tensor_list
)
!=
nranks
:
raise
RuntimeError
(
f
"The tensor_list for scatter is not correctly-sized."
)
"The tensor_list for scatter is not correctly-sized."
)
for
tensor
in
tensor_list
:
if
tensor
.
shape
!=
shape
:
raise
RuntimeError
(
f
"The tensor_list for scatter is not correctly-sized."
)
"The tensor_list for scatter is not correctly-sized."
)
def
_scatter_tensor_in_dygraph
(
out_tensor
,
in_tensor
,
src
,
group
,
sync_op
,
...
...
python/paddle/fluid/tests/unittests/collective/communication_stream_alltoall_api_dygraph.py
浏览文件 @
f4a5fe95
...
...
@@ -15,9 +15,7 @@
import
os
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.distributed
as
dist
import
test_communication_api_base
as
test_base
import
test_collective_api_base
as
test_collective_base
...
...
python/paddle/fluid/tests/unittests/collective/communication_stream_alltoall_single_api_dygraph.py
浏览文件 @
f4a5fe95
...
...
@@ -15,9 +15,7 @@
import
os
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.distributed
as
dist
import
test_communication_api_base
as
test_base
import
test_collective_api_base
as
test_collective_base
...
...
python/paddle/fluid/tests/unittests/collective/test_communication_stream_alltoall_api.py
浏览文件 @
f4a5fe95
...
...
@@ -13,8 +13,6 @@
# limitations under the License.
import
unittest
import
paddle
import
itertools
import
test_communication_api_base
as
test_base
...
...
python/paddle/fluid/tests/unittests/collective/test_communication_stream_alltoall_single_api.py
浏览文件 @
f4a5fe95
...
...
@@ -13,8 +13,6 @@
# limitations under the License.
import
unittest
import
paddle
import
itertools
import
test_communication_api_base
as
test_base
...
...
python/paddle/fluid/tests/unittests/collective/test_communication_stream_broadcast_api.py
浏览文件 @
f4a5fe95
...
...
@@ -13,8 +13,6 @@
# limitations under the License.
import
unittest
import
paddle
import
itertools
import
test_communication_api_base
as
test_base
...
...
python/paddle/fluid/tests/unittests/collective/test_communication_stream_reduce_api.py
浏览文件 @
f4a5fe95
...
...
@@ -13,8 +13,6 @@
# limitations under the License.
import
unittest
import
paddle
import
itertools
import
test_communication_api_base
as
test_base
...
...
python/paddle/fluid/tests/unittests/collective/test_communication_stream_reduce_scatter_api.py
浏览文件 @
f4a5fe95
...
...
@@ -13,8 +13,6 @@
# limitations under the License.
import
unittest
import
paddle
import
itertools
import
test_communication_api_base
as
test_base
...
...
python/paddle/fluid/tests/unittests/collective/test_communication_stream_scatter_api.py
浏览文件 @
f4a5fe95
...
...
@@ -13,8 +13,6 @@
# limitations under the License.
import
unittest
import
paddle
import
itertools
import
test_communication_api_base
as
test_base
...
...
python/paddle/fluid/tests/unittests/xpu/test_lookup_table_v2_op_xpu.py
浏览文件 @
f4a5fe95
...
...
@@ -22,7 +22,6 @@ import paddle
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
from
paddle.fluid.op
import
Operator
import
paddle.compat
as
cpt
import
paddle.fluid
as
fluid
from
paddle.fluid
import
Program
,
program_guard
...
...
python/paddle/nn/layer/rnn.py
浏览文件 @
f4a5fe95
...
...
@@ -14,7 +14,6 @@
import
six
import
math
import
sys
from
functools
import
reduce
import
numpy
as
np
...
...
python/paddle/tests/test_callback_visualdl.py
浏览文件 @
f4a5fe95
...
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
sys
import
unittest
import
tempfile
import
shutil
...
...
tools/prune_for_jetson.py
浏览文件 @
f4a5fe95
...
...
@@ -17,7 +17,6 @@ when cmake ON_INFER=ON, which can greatly reduce the volume of the prediction li
"""
import
os
import
sys
import
re
import
glob
...
...
tools/remove_grad_op_and_kernel.py
浏览文件 @
f4a5fe95
...
...
@@ -17,7 +17,6 @@ when cmake ON_INFER=ON, which can greatly reduce the volume of the prediction li
"""
import
os
import
sys
import
re
import
glob
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录