未验证 提交 958e2aef 编写于 作者: Webbley's avatar Webbley 提交者: GitHub

Merge pull request #1 from PaddlePaddle/master

fix CUDAPlace
...@@ -49,7 +49,7 @@ Currently our PGL is developed based on static computational mode of paddle (we ...@@ -49,7 +49,7 @@ Currently our PGL is developed based on static computational mode of paddle (we
import paddle.fluid as fluid import paddle.fluid as fluid
use_cuda = False use_cuda = False
place = fluid.GPUPlace(0) if use_cuda else fluid.CPUPlace() place = fluid.CUDAPlace(0) if use_cuda else fluid.CPUPlace()
# use GraphWrapper as a container for graph data to construct a graph neural network # use GraphWrapper as a container for graph data to construct a graph neural network
gw = pgl.graph_wrapper.GraphWrapper(name='graph', gw = pgl.graph_wrapper.GraphWrapper(name='graph',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册