Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
a7539508
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
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看板
未验证
提交
a7539508
编写于
2月 08, 2023
作者:
Z
zmxdream
提交者:
GitHub
2月 08, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[pglbox]hidden unzip (#50292)
* hidden unzip * fix * fix
上级
f9c801ff
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
6 addition
and
7 deletion
+6
-7
paddle/fluid/distributed/ps/service/simple_rpc/baidu_rpc_server.cc
...uid/distributed/ps/service/simple_rpc/baidu_rpc_server.cc
+5
-4
python/paddle/fluid/tests/unittests/test_unzip_op.py
python/paddle/fluid/tests/unittests/test_unzip_op.py
+1
-1
python/paddle/incubate/__init__.py
python/paddle/incubate/__init__.py
+0
-2
未找到文件。
paddle/fluid/distributed/ps/service/simple_rpc/baidu_rpc_server.cc
浏览文件 @
a7539508
...
@@ -110,7 +110,7 @@ class BRpcServiceImpl : public SimpleRpcService {
...
@@ -110,7 +110,7 @@ class BRpcServiceImpl : public SimpleRpcService {
delete
head
.
request
;
delete
head
.
request
;
PADDLE_ENFORCE_NE
(
PADDLE_ENFORCE_NE
(
head
.
service
,
head
.
service
,
0
,
nullptr
,
phi
::
errors
::
PreconditionNotMet
(
"Service should not be nullptr."
));
phi
::
errors
::
PreconditionNotMet
(
"Service should not be nullptr."
));
head
.
service
->
decrease_request
();
head
.
service
->
decrease_request
();
}
else
{
}
else
{
...
@@ -150,8 +150,9 @@ void BaiduRpcServer::initialize() {
...
@@ -150,8 +150,9 @@ void BaiduRpcServer::initialize() {
return
;
return
;
}
}
PADDLE_ENFORCE_NE
(
PADDLE_ENFORCE_NE
(
_gloo
,
_gloo
,
NULL
,
phi
::
errors
::
PreconditionNotMet
(
"Gloo not allow nullptr."
));
nullptr
,
phi
::
errors
::
PreconditionNotMet
(
"Gloo not allow nullptr."
));
_gloo
->
Barrier
();
_gloo
->
Barrier
();
_server
->
set_version
(
google
::
VersionString
());
_server
->
set_version
(
google
::
VersionString
());
brpc
::
ServerOptions
option
;
brpc
::
ServerOptions
option
;
...
@@ -237,7 +238,7 @@ static void handle_baidu_rpc_response(brpc::Controller *cntl,
...
@@ -237,7 +238,7 @@ static void handle_baidu_rpc_response(brpc::Controller *cntl,
delete
head
.
request
;
delete
head
.
request
;
PADDLE_ENFORCE_NE
(
PADDLE_ENFORCE_NE
(
head
.
service
,
head
.
service
,
0
,
nullptr
,
phi
::
errors
::
PreconditionNotMet
(
"Service should not be nullptr."
));
phi
::
errors
::
PreconditionNotMet
(
"Service should not be nullptr."
));
head
.
service
->
decrease_request
();
head
.
service
->
decrease_request
();
}
else
{
}
else
{
...
...
python/paddle/fluid/tests/unittests/test_unzip_op.py
浏览文件 @
a7539508
...
@@ -31,7 +31,7 @@ class TestUnzipOp(unittest.TestCase):
...
@@ -31,7 +31,7 @@ class TestUnzipOp(unittest.TestCase):
place
=
fluid
.
CUDAPlace
(
0
)
place
=
fluid
.
CUDAPlace
(
0
)
x
=
fluid
.
data
(
name
=
'X'
,
shape
=
[
3
,
4
],
dtype
=
'float64'
)
x
=
fluid
.
data
(
name
=
'X'
,
shape
=
[
3
,
4
],
dtype
=
'float64'
)
lod
=
fluid
.
data
(
name
=
'lod'
,
shape
=
[
11
],
dtype
=
'int64'
)
lod
=
fluid
.
data
(
name
=
'lod'
,
shape
=
[
11
],
dtype
=
'int64'
)
output
=
paddle
.
incubate
.
unzip
(
x
,
lod
)
output
=
paddle
.
incubate
.
operators
.
unzip
(
x
,
lod
)
input
=
[
input
=
[
[
1.0
,
2.0
,
3.0
,
4.0
],
[
1.0
,
2.0
,
3.0
,
4.0
],
...
...
python/paddle/incubate/__init__.py
浏览文件 @
a7539508
...
@@ -23,7 +23,6 @@ from .operators import graph_send_recv
...
@@ -23,7 +23,6 @@ from .operators import graph_send_recv
from
.operators
import
graph_khop_sampler
from
.operators
import
graph_khop_sampler
from
.operators
import
graph_sample_neighbors
from
.operators
import
graph_sample_neighbors
from
.operators
import
graph_reindex
from
.operators
import
graph_reindex
from
.operators
import
unzip
from
.tensor
import
segment_sum
from
.tensor
import
segment_sum
from
.tensor
import
segment_mean
from
.tensor
import
segment_mean
from
.tensor
import
segment_max
from
.tensor
import
segment_max
...
@@ -56,5 +55,4 @@ __all__ = [
...
@@ -56,5 +55,4 @@ __all__ = [
'segment_max'
,
'segment_max'
,
'segment_min'
,
'segment_min'
,
'identity_loss'
,
'identity_loss'
,
'unzip'
,
]
]
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录