Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
26cbc3fb
Unverified
Commit
26cbc3fb
authored
Oct 30, 2019
by
Tianqi Chen
Committed by
GitHub
Oct 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI] Move gpu docker binary to cuda10 (#4229)
* [CI] Move gpu docker binary to cuda10 * Fix the gcn tutorial
parent
18673112
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Jenkinsfile
+1
-1
tutorials/frontend/build_gcn.py
+4
-3
No files found.
Jenkinsfile
View file @
26cbc3fb
...
...
@@ -45,7 +45,7 @@
//
ci_lint
=
"tvmai/ci-lint:v0.51"
ci_gpu
=
"tvmai/ci-gpu:v0.5
4
"
ci_gpu
=
"tvmai/ci-gpu:v0.5
5
"
ci_cpu
=
"tvmai/ci-cpu:v0.54"
ci_i386
=
"tvmai/ci-i386:v0.52"
...
...
tutorials/frontend/build_gcn.py
View file @
26cbc3fb
...
...
@@ -46,6 +46,7 @@ import torch
import
torch.nn
as
nn
import
torch.nn.functional
as
F
import
dgl
import
networkx
as
nx
from
dgl.nn.pytorch
import
GraphConv
class
GCN
(
nn
.
Module
):
...
...
@@ -88,7 +89,7 @@ def load_dataset(dataset="cora"):
# Remove self-loops to avoid duplicate passing of a node's feature to itself
g
=
data
.
graph
g
.
remove_edges_from
(
g
.
selfloop_edges
(
))
g
.
remove_edges_from
(
nx
.
selfloop_edges
(
g
))
g
.
add_edges_from
(
zip
(
g
.
nodes
,
g
.
nodes
))
return
g
,
data
...
...
@@ -110,7 +111,7 @@ def evaluate(data, logits):
Parameters
----------
dataset: str
Name of dataset. You can choose from ['cora', 'citeseer', 'pubmed'].
Name of dataset. You can choose from ['cora', 'citeseer', 'pubmed'].
num_layer: int
number of hidden layers
...
...
@@ -251,7 +252,7 @@ def GraphConv(layer_name,
######################################################################
# Prepare the parameters needed in the GraphConv layers
# ------------------
#
#
import
numpy
as
np
import
networkx
as
nx
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment