Skip to content

Commit 3800da2

Browse files
committed
Merge branch 'master' into 0.8.x
2 parents 5834604 + 44638b9 commit 3800da2

File tree

18 files changed

+67
-32
lines changed

18 files changed

+67
-32
lines changed

Jenkinsfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ pipeline {
345345
}
346346
stage('Tutorial test') {
347347
steps {
348-
sh 'ls -l /tmp/dataset/*'
349-
sh 'ls -l /tmp/dataset/'
350348
tutorial_test_linux('pytorch')
351349
}
352350
}

conda/dgl/conda_build_config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
python:
2-
- 3.5
32
- 3.6
43
- 3.7
4+
- 3.8
5+
- 3.9
6+
- 3.10

conda/dgl/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: dgl{{ environ.get('DGL_PACKAGE_SUFFIX', '') }}
3-
version: "0.8.0"
3+
version: "0.8.0post1"
44

55
source:
66
git_rev: 0.8.x

docker/pods/ci-cpu.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ spec:
1212
requests:
1313
cpu: 16
1414
volumeMounts:
15-
- name: persistent-storage
16-
mountPath: /tmp/dataset
15+
# - name: persistent-storage
16+
# mountPath: /tmp/dataset
1717
- name: dshm
1818
mountPath: /dev/shm
1919
volumes:
20-
- name: persistent-storage
21-
persistentVolumeClaim:
22-
claimName: ogb-efs-claim
20+
# - name: persistent-storage
21+
# persistentVolumeClaim:
22+
# claimName: ogb-efs-claim
2323
- name: dshm
2424
emptyDir:
2525
medium: Memory

examples/pytorch/graphsage/advanced/train_lightning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import glob
1212
import os
1313
import sys
14-
sys.path.append('../')
14+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
1515
from load_graph import load_reddit, inductive_split, load_ogb
1616

1717
from torchmetrics import Accuracy

examples/pytorch/graphsage/advanced/train_lightning_unsupervised.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from pytorch_lightning import LightningDataModule, LightningModule, Trainer
1919
from model import SAGE, compute_acc_unsupervised as compute_acc
2020
import sys
21-
sys.path.append('../')
21+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
2222
from load_graph import load_reddit, inductive_split, load_ogb
2323

2424
class CrossEntropyLoss(nn.Module):

examples/pytorch/graphsage/advanced/train_sampling_unsupervised.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from model import SAGE, compute_acc_unsupervised as compute_acc
1616
from negative_sampler import NegativeSampler
1717
import sys
18-
sys.path.append('../')
18+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
1919
from load_graph import load_reddit, load_ogb
2020

2121
class CrossEntropyLoss(nn.Module):

examples/pytorch/graphsage/dist/partition_graph.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import argparse
55
import time
66
import sys
7-
sys.path.append('../')
7+
import os
8+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
89
from load_graph import load_reddit, load_ogb
910

1011
if __name__ == '__main__':

examples/pytorch/graphsage/distgnn/partition_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import random
2020
import time
2121
import argparse
22-
sys.path.append('../')
22+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
2323
from load_graph import load_ogb
2424
import dgl
2525
from dgl.data import load_data

examples/pytorch/graphsage/multi_gpu_node_classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def inference(self, g, device, batch_size, num_workers, buffer_device=None):
3636
# example is that the intermediate results can also benefit from prefetching.
3737
g.ndata['h'] = g.ndata['feat']
3838
sampler = dgl.dataloading.MultiLayerFullNeighborSampler(1, prefetch_node_feats=['h'])
39-
dataloader = dgl.dataloading.NodeDataLoader(
39+
dataloader = dgl.dataloading.DataLoader(
4040
g, torch.arange(g.num_nodes()).to(g.device), sampler, device=device,
4141
batch_size=1000, shuffle=False, drop_last=False, num_workers=num_workers,
4242
persistent_workers=(num_workers > 0))
@@ -77,7 +77,7 @@ def train(rank, world_size, graph, num_classes, split_idx):
7777
graph, train_idx, sampler,
7878
device='cuda', batch_size=1000, shuffle=True, drop_last=False,
7979
num_workers=0, use_ddp=True, use_uva=True)
80-
valid_dataloader = dgl.dataloading.NodeDataLoader(
80+
valid_dataloader = dgl.dataloading.DataLoader(
8181
graph, valid_idx, sampler, device='cuda', batch_size=1024, shuffle=True,
8282
drop_last=False, num_workers=0, use_uva=True)
8383

0 commit comments

Comments
 (0)