Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
68c1fe8c
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看板
未验证
提交
68c1fe8c
编写于
6月 24, 2021
作者:
J
Jiangxinz
提交者:
GitHub
6月 24, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix undef var (#33692)
上级
49638f25
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
2 deletion
+6
-2
python/paddle/distributed/fleet/meta_optimizers/localsgd_optimizer.py
...e/distributed/fleet/meta_optimizers/localsgd_optimizer.py
+1
-0
python/paddle/fluid/dataloader/flat.py
python/paddle/fluid/dataloader/flat.py
+1
-1
python/paddle/fluid/distributed/fleet.py
python/paddle/fluid/distributed/fleet.py
+1
-0
python/paddle/fluid/tests/unittests/test_group_norm_op.py
python/paddle/fluid/tests/unittests/test_group_norm_op.py
+1
-1
python/paddle/optimizer/momentum.py
python/paddle/optimizer/momentum.py
+2
-0
未找到文件。
python/paddle/distributed/fleet/meta_optimizers/localsgd_optimizer.py
浏览文件 @
68c1fe8c
...
@@ -16,6 +16,7 @@ from __future__ import print_function
...
@@ -16,6 +16,7 @@ from __future__ import print_function
import
paddle
import
paddle
from
paddle.fluid
import
program_guard
,
layers
,
default_main_program
from
paddle.fluid
import
program_guard
,
layers
,
default_main_program
from
paddle.fluid
import
default_startup_program
from
.meta_optimizer_base
import
MetaOptimizerBase
from
.meta_optimizer_base
import
MetaOptimizerBase
from
.common
import
OpRole
,
OP_ROLE_KEY
,
CollectiveHelper
,
is_update_op
from
.common
import
OpRole
,
OP_ROLE_KEY
,
CollectiveHelper
,
is_update_op
...
...
python/paddle/fluid/dataloader/flat.py
浏览文件 @
68c1fe8c
...
@@ -120,7 +120,7 @@ def _restore_batch(flat_batch, structure):
...
@@ -120,7 +120,7 @@ def _restore_batch(flat_batch, structure):
elif
isinstance
(
field
,
(
Sequence
,
Mapping
)):
elif
isinstance
(
field
,
(
Sequence
,
Mapping
)):
field_idx
=
_restore
(
structure
[
k
],
field_idx
)
field_idx
=
_restore
(
structure
[
k
],
field_idx
)
else
:
else
:
raise
TypeError
(
"wrong flat data type: {}"
.
format
(
type
(
batch
)))
raise
TypeError
(
"wrong flat data type: {}"
.
format
(
type
(
structure
)))
return
field_idx
return
field_idx
...
...
python/paddle/fluid/distributed/fleet.py
浏览文件 @
68c1fe8c
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
import
sys
import
sys
from
..
import
core
from
..
import
core
from
.
import
ps_instance
from
.
import
ps_instance
from
google.protobuf
import
text_format
__all__
=
[
'Fleet'
]
__all__
=
[
'Fleet'
]
...
...
python/paddle/fluid/tests/unittests/test_group_norm_op.py
浏览文件 @
68c1fe8c
...
@@ -46,7 +46,7 @@ class TestGroupNormOpError(unittest.TestCase):
...
@@ -46,7 +46,7 @@ class TestGroupNormOpError(unittest.TestCase):
def
test_x_type
():
def
test_x_type
():
input
=
np
.
random
.
random
(
2
,
100
,
3
,
5
).
astype
(
'float32'
)
input
=
np
.
random
.
random
(
2
,
100
,
3
,
5
).
astype
(
'float32'
)
goups
=
2
g
r
oups
=
2
fluid
.
layers
.
group_norm
(
input
,
groups
)
fluid
.
layers
.
group_norm
(
input
,
groups
)
self
.
assertRaises
(
TypeError
,
test_x_type
)
self
.
assertRaises
(
TypeError
,
test_x_type
)
...
...
python/paddle/optimizer/momentum.py
浏览文件 @
68c1fe8c
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
# 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
warnings
from
.optimizer
import
Optimizer
from
.optimizer
import
Optimizer
from
..fluid
import
core
from
..fluid
import
core
from
..fluid
import
framework
from
..fluid
import
framework
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录