Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
e6ffdeeb
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e6ffdeeb
编写于
8月 27, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
8月 27, 2020
浏览文件
操作
浏览文件
下载
差异文件
!5255 Fix no attribute'_graph_data' error in graphdata.py
Merge pull request !5255 from heleiwang/fix_graphdata
上级
acafe51a
de36b0af
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
3 deletion
+4
-3
mindspore/dataset/engine/graphdata.py
mindspore/dataset/engine/graphdata.py
+4
-3
未找到文件。
mindspore/dataset/engine/graphdata.py
浏览文件 @
e6ffdeeb
...
@@ -55,8 +55,8 @@ class GraphData:
...
@@ -55,8 +55,8 @@ class GraphData:
set the number of clients expected to connect, and the server will allocate corresponding
set the number of clients expected to connect, and the server will allocate corresponding
resources according to this parameter (default=1).
resources according to this parameter (default=1).
auto_shutdown (bool, optional): Valid when working_mode is set to 'server',
auto_shutdown (bool, optional): Valid when working_mode is set to 'server',
Control when all clients have connected and no client connected to the server
,
when the number of connected clients reaches num_client and no client is being connected
,
automatically exit the server
(default=True).
the server automatically exits
(default=True).
"""
"""
@
check_gnn_graphdata
@
check_gnn_graphdata
...
@@ -69,14 +69,15 @@ class GraphData:
...
@@ -69,14 +69,15 @@ class GraphData:
def
stop
():
def
stop
():
self
.
_graph_data
.
stop
()
self
.
_graph_data
.
stop
()
atexit
.
register
(
stop
)
if
working_mode
in
[
'local'
,
'client'
]:
if
working_mode
in
[
'local'
,
'client'
]:
self
.
_graph_data
=
GraphDataClient
(
dataset_file
,
num_parallel_workers
,
working_mode
,
hostname
,
port
)
self
.
_graph_data
=
GraphDataClient
(
dataset_file
,
num_parallel_workers
,
working_mode
,
hostname
,
port
)
atexit
.
register
(
stop
)
if
working_mode
==
'server'
:
if
working_mode
==
'server'
:
self
.
_graph_data
=
GraphDataServer
(
self
.
_graph_data
=
GraphDataServer
(
dataset_file
,
num_parallel_workers
,
hostname
,
port
,
num_client
,
auto_shutdown
)
dataset_file
,
num_parallel_workers
,
hostname
,
port
,
num_client
,
auto_shutdown
)
atexit
.
register
(
stop
)
try
:
try
:
while
self
.
_graph_data
.
is_stoped
()
is
not
True
:
while
self
.
_graph_data
.
is_stoped
()
is
not
True
:
time
.
sleep
(
1
)
time
.
sleep
(
1
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录