Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PGL
提交
920a0acc
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看板
未验证
提交
920a0acc
编写于
4月 13, 2020
作者:
Webbley
提交者:
GitHub
4月 13, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #41 from Liwb5/develop
develop
上级
a6eda037
5a8ae7ef
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
7 addition
and
7 deletion
+7
-7
docs/source/quick_start/md/quick_start.md
docs/source/quick_start/md/quick_start.md
+1
-1
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
未找到文件。
docs/source/quick_start/md/quick_start.md
浏览文件 @
920a0acc
...
...
@@ -49,7 +49,7 @@ Currently our PGL is developed based on static computational mode of paddle (we
import
paddle.fluid
as
fluid
use_cuda
=
False
place
=
fluid
.
GPU
Place
(
0
)
if
use_cuda
else
fluid
.
CPUPlace
()
place
=
fluid
.
CUDA
Place
(
0
)
if
use_cuda
else
fluid
.
CPUPlace
()
# use GraphWrapper as a container for graph data to construct a graph neural network
gw
=
pgl
.
graph_wrapper
.
GraphWrapper
(
name
=
'graph'
,
...
...
pgl/graph_wrapper.py
浏览文件 @
920a0acc
...
...
@@ -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
浏览文件 @
920a0acc
...
...
@@ -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
浏览文件 @
920a0acc
...
...
@@ -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
浏览文件 @
920a0acc
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录