Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
78a9870f
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
78a9870f
编写于
6月 16, 2021
作者:
J
Jiangxinz
提交者:
GitHub
6月 16, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bad super call (#33533)
上级
b4f82871
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
10 addition
and
10 deletion
+10
-10
python/paddle/distributed/entry_attr.py
python/paddle/distributed/entry_attr.py
+2
-2
python/paddle/fluid/entry_attr.py
python/paddle/fluid/entry_attr.py
+2
-2
python/paddle/fluid/incubate/fleet/base/role_maker.py
python/paddle/fluid/incubate/fleet/base/role_maker.py
+1
-1
python/paddle/fluid/tests/unittests/mkldnn/test_conv2d_transpose_mkldnn_op.py
...tests/unittests/mkldnn/test_conv2d_transpose_mkldnn_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_backward.py
python/paddle/fluid/tests/unittests/test_backward.py
+2
-2
python/paddle/fluid/tests/unittests/test_fleet_metric.py
python/paddle/fluid/tests/unittests/test_fleet_metric.py
+1
-1
python/paddle/fluid/tests/unittests/test_fleet_rolemaker_2.py
...on/paddle/fluid/tests/unittests/test_fleet_rolemaker_2.py
+1
-1
未找到文件。
python/paddle/distributed/entry_attr.py
浏览文件 @
78a9870f
...
...
@@ -82,7 +82,7 @@ class ProbabilityEntry(EntryAttr):
"""
def
__init__
(
self
,
probability
):
super
(
EntryAttr
,
self
).
__init__
()
super
(
ProbabilityEntry
,
self
).
__init__
()
if
not
isinstance
(
probability
,
float
):
raise
ValueError
(
"probability must be a float in (0,1)"
)
...
...
@@ -122,7 +122,7 @@ class CountFilterEntry(EntryAttr):
"""
def
__init__
(
self
,
count_filter
):
super
(
EntryAttr
,
self
).
__init__
()
super
(
CountFilterEntry
,
self
).
__init__
()
if
not
isinstance
(
count_filter
,
int
):
raise
ValueError
(
...
...
python/paddle/fluid/entry_attr.py
浏览文件 @
78a9870f
...
...
@@ -40,7 +40,7 @@ class EntryAttr(object):
class
ProbabilityEntry
(
EntryAttr
):
def
__init__
(
self
,
probability
):
super
(
EntryAttr
,
self
).
__init__
()
super
(
ProbabilityEntry
,
self
).
__init__
()
if
not
isinstance
(
probability
,
float
):
raise
ValueError
(
"probability must be a float in (0,1)"
)
...
...
@@ -57,7 +57,7 @@ class ProbabilityEntry(EntryAttr):
class
CountFilterEntry
(
EntryAttr
):
def
__init__
(
self
,
count_filter
):
super
(
EntryAttr
,
self
).
__init__
()
super
(
CountFilterEntry
,
self
).
__init__
()
if
not
isinstance
(
count_filter
,
int
):
raise
ValueError
(
...
...
python/paddle/fluid/incubate/fleet/base/role_maker.py
浏览文件 @
78a9870f
...
...
@@ -591,7 +591,7 @@ class GeneralRoleMaker(RoleMakerBase):
"""
def
__init__
(
self
,
**
kwargs
):
super
(
RoleMakerBase
,
self
).
__init__
()
super
(
GeneralRoleMaker
,
self
).
__init__
()
self
.
_role_is_generated
=
False
self
.
_hdfs_name
=
kwargs
.
get
(
"hdfs_name"
,
""
)
self
.
_hdfs_ugi
=
kwargs
.
get
(
"hdfs_ugi"
,
""
)
...
...
python/paddle/fluid/tests/unittests/mkldnn/test_conv2d_transpose_mkldnn_op.py
浏览文件 @
78a9870f
...
...
@@ -134,7 +134,7 @@ class TestMKLDNNWithValidPad(TestConv2DTransposeMKLDNNOp):
class
TestMKLDNNWithValidPad_NHWC
(
TestMKLDNNWithValidPad
):
def
init_test_case
(
self
):
super
(
TestMKLDNNWithValidPad
,
self
).
init_test_case
()
super
(
TestMKLDNNWithValidPad
_NHWC
,
self
).
init_test_case
()
self
.
data_format
=
"NHWC"
N
,
C
,
H
,
W
=
self
.
input_size
self
.
input_size
=
[
N
,
H
,
W
,
C
]
...
...
python/paddle/fluid/tests/unittests/test_backward.py
浏览文件 @
78a9870f
...
...
@@ -160,7 +160,7 @@ class TestBackward(unittest.TestCase):
class
SimpleNet
(
BackwardNet
):
def
__init__
(
self
):
super
(
Backward
Net
,
self
).
__init__
()
super
(
Simple
Net
,
self
).
__init__
()
self
.
stop_gradient_grad_vars
=
set
([
u
'x_no_grad@GRAD'
,
u
'x2_no_grad@GRAD'
,
u
'x3_no_grad@GRAD'
,
u
'label_no_grad@GRAD'
...
...
@@ -330,7 +330,7 @@ class TestAppendBackwardWithError(unittest.TestCase):
# TODO(Aurelius84): add conditional network test
class
ConditionalNet
(
BackwardNet
):
def
__init__
(
self
):
super
(
Backward
Net
,
self
).
__init__
()
super
(
Conditional
Net
,
self
).
__init__
()
if
__name__
==
'__main__'
:
...
...
python/paddle/fluid/tests/unittests/test_fleet_metric.py
浏览文件 @
78a9870f
...
...
@@ -35,7 +35,7 @@ class TestFleetMetric(unittest.TestCase):
class
FakeUtil
(
UtilBase
):
def
__init__
(
self
,
fake_fleet
):
super
(
UtilBase
,
self
).
__init__
()
super
(
FakeUtil
,
self
).
__init__
()
self
.
fleet
=
fake_fleet
def
all_reduce
(
self
,
input
,
mode
=
"sum"
,
comm_world
=
"worker"
):
...
...
python/paddle/fluid/tests/unittests/test_fleet_rolemaker_2.py
浏览文件 @
78a9870f
...
...
@@ -199,7 +199,7 @@ class TestCloudRoleMaker2(unittest.TestCase):
"""
def
__init__
(
self
):
super
(
Fleet
,
self
).
__init__
()
super
(
Tmp
Fleet
,
self
).
__init__
()
self
.
_role_maker
=
None
def
init_worker
(
self
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录