Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PGL
提交
11bfcf8a
P
PGL
项目概览
PaddlePaddle
/
PGL
通知
76
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
11
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PGL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
11
Issue
11
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
11bfcf8a
编写于
4月 13, 2020
作者:
W
Webbley
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug of CUDAPlace
上级
2a7bf171
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
6 deletion
+6
-6
pgl/graph_wrapper.py
pgl/graph_wrapper.py
+3
-3
pgl/heter_graph_wrapper.py
pgl/heter_graph_wrapper.py
+1
-1
pgl/tests/test_gin.py
pgl/tests/test_gin.py
+1
-1
tutorials/1-Introduction.ipynb
tutorials/1-Introduction.ipynb
+1
-1
未找到文件。
pgl/graph_wrapper.py
浏览文件 @
11bfcf8a
...
...
@@ -278,7 +278,7 @@ class StaticGraphWrapper(BaseGraphWrapper):
graph: The static graph that should be put into memory
place: fluid.CPUPlace or fluid.
GPU
Place(n) indicating the
place: fluid.CPUPlace or fluid.
CUDA
Place(n) indicating the
device to hold the graph data.
Examples:
...
...
@@ -456,7 +456,7 @@ class StaticGraphWrapper(BaseGraphWrapper):
"""Placing the graph data into the devices.
Args:
place: fluid.CPUPlace or fluid.
GPU
Place(n) indicating the
place: fluid.CPUPlace or fluid.
CUDA
Place(n) indicating the
device to hold the graph data.
"""
log
.
info
(
...
...
@@ -475,7 +475,7 @@ class GraphWrapper(BaseGraphWrapper):
Args:
name: The graph data prefix
place: fluid.CPUPlace or fluid.
GPU
Place(n) indicating the
place: fluid.CPUPlace or fluid.
CUDA
Place(n) indicating the
device to hold the graph data.
node_feat: A list of tuples that decribe the details of node
...
...
pgl/heter_graph_wrapper.py
浏览文件 @
11bfcf8a
...
...
@@ -44,7 +44,7 @@ class HeterGraphWrapper(object):
Args:
name: The heterogeneous graph data prefix
place: fluid.CPUPlace or fluid.
GPU
Place(n) indicating the
place: fluid.CPUPlace or fluid.
CUDA
Place(n) indicating the
device to hold the graph data.
node_feat: A dict of list of tuples that decribe the details of node
...
...
pgl/tests/test_gin.py
浏览文件 @
11bfcf8a
...
...
@@ -51,7 +51,7 @@ class GinTest(unittest.TestCase):
g
=
graph
.
Graph
(
num_nodes
=
num_nodes
,
edges
=
edges
,
node_feat
=
node_feat
)
use_cuda
=
False
place
=
F
.
GPU
Place
(
0
)
if
use_cuda
else
F
.
CPUPlace
()
place
=
F
.
CUDA
Place
(
0
)
if
use_cuda
else
F
.
CPUPlace
()
prog
=
F
.
Program
()
startup_prog
=
F
.
Program
()
...
...
tutorials/1-Introduction.ipynb
浏览文件 @
11bfcf8a
...
...
@@ -145,7 +145,7 @@
"source": [
"import paddle.fluid as fluid\n",
"use_cuda = False \n",
"place = fluid.
GPU
Place(0) if use_cuda else fluid.CPUPlace()\n",
"place = fluid.
CUDA
Place(0) if use_cuda else fluid.CPUPlace()\n",
"\n",
"gw = pgl.graph_wrapper.GraphWrapper(name='graph',\n",
" place = place,\n",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录