提交

提交图

1754 次代码提交

作者 SHA1 备注 提交日期
Tomasz Patejko 411bef5498 [CPU, Parallel] parallel_for with default grain size (#3004) 2021-06-11 17:09:30 +08:00
nv-dlasalle 17d604b5c7 [Feature] Allow using NCCL for communication in dgl.NodeEmbedding and dgl.SparseOptimizer (#2824)
* Split from NCCL PR

* Fix type in comment

* Expand documentation for sparse_all_to_all_push

* Restore previous behavior in example

* Re-work optimizer to use NCCL based on gradient location

* Allow for running with embedding on CPU but using NCCL for gradient exchange

* Optimize single partition case

* Fix pylint errors

* Add missing include

* fix gradient indexing

* Fix line continuation

* Migrate 'first_step'

* Skip tests without enough GPUs to run NCCL

* Improve empty tensor handling for pytorch 1.5

* Fix indentation

* Allow multiple NCCL communicator to coexist

* Improve handling of empty message

* Update python/dgl/nn/pytorch/sparse_emb.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>

* Update python/dgl/nn/pytorch/sparse_emb.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>

* Keepy empty tensor dimensionaless

* th.empty -> th.tensor

* Preserve shape for empty non-zero dimension tensors

* Use shared state, when embedding is shared

* Add support for gathering an embedding

* Fix typo

* Fix more typos

* Fix backend call

* Use NodeDataLoader to take advantage of ddp

* Update training script to share memory

* Only squeeze last dimension

* Better handle empty message

* Keep embedding on the target device GPU if dgl_sparse if false in RGCN example

* Fix typo in comment

* Add asserts

* Improve documentation in example

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2021-06-10 21:19:00 -07:00
nv-dlasalle 9497a9be85 [Bugfix][Examples] Fix graphsage multigpu training example training set size (#3002)
* Make multigpu graphsage use whole datset

* Specify queeze dimension

* Remove squeeze dimension

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
2021-06-10 16:35:08 -07:00
Mufei Li 5be937a7fb [Kernel] Slicing Batched Graphs (#2965)
* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update

* Update

* Add files via upload

* Add files via upload

* Update

* Lint

* Add files via upload

* Lint

* Update

* Update

* Update

* Update

* Update

* Lint Fix

* Lint

Co-authored-by: Ubuntu <ubuntu@ip-172-31-12-161.us-west-2.compute.internal>
Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2021-06-10 12:07:44 +08:00
Ajay Brahmakshatriya ba1549244c [Performance][Kernel] Eliminating ctor&dtor zand IsNullArray overhead in random walks (#2990)
* Added a special implementation for MetapathBasedRandomWalkStep for the Uniform randomwalk case

* Fixed all linting issues

* add comment

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
Co-authored-by: Da Zheng <zhengda1936@gmail.com>
2021-06-10 10:10:15 +08:00
Quan (Andy) Gan f91a97d067 [Dataloader] Fix compatibility of DistributedSampler for older PyTorch versions (#2997)
* fix compatibility

* fix

* lint
2021-06-09 20:14:26 +08:00
Quan (Andy) Gan a7fe461c1c [Doc] Single-machine Multi-GPU node classification tutorial (#2976)
* multi-GPU node classification tutorial

* Update 2_node_classification.py

* fixes

* elaborate a bit more

* address comments

* address comments
2021-06-08 10:28:02 +08:00
Theheavens 6c59fee99b [Model] HetGNN/GTN/HAN/NSHE/MAGNN examples (#2993)
* commit hetgnn

* Update README.md

* Delete examples/pytorch/hetgnn directory

* Update README.md

* Update README.md

* Update README.md

* Revert "Update README.md"

This reverts commit 14cdb3da76c58665ff879eae17ecf9eb28b66cce.

* Update README.md

* Add files via upload

* Update README.md

* Update README.md
2021-06-08 08:54:27 +08:00
Tianjun Xiao fd72df9a3d add Contrast-Reg to awesome papers (#2991) 2021-06-07 14:43:12 +08:00
Tong He 972a9f1323 [Doc] Re-organize the code for dgl.geometry, and expose it in the doc (#2982)
* reorg and expose dgl.geometry

* fix lint

* fix test

* fix
2021-06-07 11:19:39 +08:00
Tomasz Patejko e20d895324 [CPU Parallel] implementation of parallel_for with grain size (#2972)
* [CPU Parallel] implementation of parallel_for with grain size

* Create parallel_for.h

* Update parallel_for.h

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
2021-06-06 21:09:24 +08:00
Kay Liu 895d6fff72 [Doc] changing of output dimension (#2981)
Co-authored-by: zhjwy9343 <6593865@qq.com>
2021-06-05 22:12:41 +08:00
Kay Liu e2a28a6c8e [Doc] Revised Two Issues in Message Passing Tutorial (#2983)
* [Doc] modify the dimension of weight to Numpy broadcasting rule

* [Doc] modify the user defined reduce function

Co-authored-by: zhjwy9343 <6593865@qq.com>
2021-06-05 18:54:31 +08:00
Kay Liu 849cbec6ee [Feature] add positive negative statistics (#2984)
Co-authored-by: zhjwy9343 <6593865@qq.com>
Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
2021-06-05 15:48:11 +08:00
Alex P 6e9d16459e [Fix] Fixed AttributeError with new version of torchtext (0.9+). (#2985) 2021-06-05 02:01:20 +08:00
Da Zheng b1628f2398 [Tutorial] Distributed node classification. (#2969)
* add init version.

* fix build.

* fix format.

* fix.

* fix.

* fix format.

* update README.

* avoid running CI on distributed training tutorials.

* Update tutorials/dist/1_node_classification.py

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>

* fix.

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2021-06-04 21:50:16 +08:00
Jinjing Zhou 6a56562a7c [CI] Use k8s cluster (#2957)
* add

* fix

* set default

* fix

* try master

* try fix

* try

* fix

* 111

* fix

* fix

* update

* ccc

* try

* fix

* fix

* try new machine

* fix

* fix

* fix

* Revert "fix"

This reverts commit e716d66b046f92fe7ae368947a51a036a7a3188a.

* try

* more parrallel

* use k8s for all

* fix name

* try not specify instance type

* ci

* use one yaml

* Revert "use one yaml"

This reverts commit 717d8d852be39fbf2e2e45f9f224aa97907c372c.

* add timeout

* fix permission

* mount efs

* print

* fix pvc

* fix

* restrict num of gpu instances

* check

* fix

* fix
2021-06-04 18:31:11 +08:00
Quan (Andy) Gan 2df4a95f3e [Feature] Make to_heterogeneous(to_homogeneous(hg)) return hg (#2958)
* make to_heterogeneous and to_homogeneous invertible

* docstring

* oops

Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
2021-06-03 18:50:18 +08:00
KounianhuaDu 60426278bf [Example] TAHIN (#2864)
* tahin

* readme

* readme

* readme

* readme

* readme

* readme

* main

* main

* new_line

* update

Co-authored-by: zhjwy9343 <6593865@qq.com>
2021-06-03 16:03:55 +08:00
Quan (Andy) Gan 7e58236cc7 [Build] Fix NCCL building crashes when using submodules but with system NCCL installed (#2975) 2021-06-03 14:41:52 +08:00
Israt Nisa 75ec58260a Add heterograph support in C kernels (#2882)
* SpMM for heterograph

* C APIs SDDMM heterograph

* passes initial result

* renamed eid with nid

* aggregation on same ntype for multiple etypes

* fix link check failure

* lint check part 2

* lint check part 3

* Fixed SpMMCmpCsr Min op

* added mem references

* fixed fill(Max/Min), added const

* removed newline

* brought back docstring

Co-authored-by: Israt Nisa <nisisrat@amazon.com>
Co-authored-by: Da Zheng <zhengda1936@gmail.com>
2021-06-03 12:14:25 +08:00
Kay Liu 6383e64937 [Doc] correct the matrix multiplication symbols (#2961)
* correct the matrix multiplication symbols

* modified dimensionality of linear

Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2021-06-03 08:51:23 +08:00
Da Zheng 7a816f4743 [Doc] Minor fix on the distributed training doc. (#2968)
Co-authored-by: Zheng <dzzhen@3c22fba32af5.ant.amazon.com>
2021-06-02 18:46:52 +08:00
Jinjing Zhou f8d6bf8e07 [Test] Fix regression ram info (#2964)
* fix regression ram info

* fix
2021-06-02 16:14:05 +08:00
Soji Adeshina 0e964ea566 increase timeout for dgl.nn.NodeEmbedding TCPStore get/wait to 10 minutes (#2967)
Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2021-06-02 14:56:42 +08:00
Quan (Andy) Gan 2ae190d690 [Doc] fix shape mismatch problem in user guide (#2938)
Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2021-06-02 12:18:10 +08:00
Quan (Andy) Gan 527bbfa8ea update nightly installation (#2959)
Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2021-06-02 12:12:01 +08:00
Moritz Blum 22d0df8b6a [Doc] Update link_predict.py docstring (#2960)
corrected docstring, the model uses two R-GCN layers

Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2021-06-02 12:08:28 +08:00
nv-dlasalle 86ba2335c3 [Testing] Enable C++ tests on GPU (#2945)
* Enable C++ tests on GPU

* Add missing '--runtime nvidia'
2021-06-01 11:39:57 -07:00
Qidong Su b8fe2b4837 [Feature][Sampler] Sort CSR by tag (#1664)
* update

* update

* update

* update

* lint

* lint

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* lint

* update

* clone

* update

* update

* update

* update

* replace idarray with ndarray

* refactor cpp part

* refactor python part

* debug

* refactor interface

* test and doc

* lint and test

* lint

* fix

* fix

* fix

* const

* doc

* fix

* fix

* fix

* fix

* fix & doc

* fix

* fix

* fix

* fix

* fix

* fix

* update

Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2021-06-01 23:33:56 +08:00
Chuang, Yun-Shiuan 0437b16497 [Doc] Fix a typo in the tutorial for Neighbor Sampling (#2935)
Fix a typo in the tutorial for "Introduction of Neighbor Sampling for GNN Training".

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
2021-06-01 13:59:22 +08:00
Quan (Andy) Gan fcfe52aee5 fix residual (#2962) 2021-06-01 13:50:39 +08:00
Jinjing Zhou 2ad7a9e9dd [Fix] Fix #2808 (#2917)
* Fix #2808

* fix

* fix

* fix

* fix

* fix

* fix

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
2021-05-31 19:05:58 +08:00
Mufei Li 09642d7c21 [Tutorial] Single Machine Multi-GPU Minibatch Graph Classification (#2940)
* Update

* Update

* Update tutorials/multi/1_graph_classification.py

Co-authored-by: Tong He <hetong007@gmail.com>

* Update

* Update

* Update

Co-authored-by: Ubuntu <ubuntu@ip-172-31-4-21.us-west-2.compute.internal>
Co-authored-by: Tong He <hetong007@gmail.com>
2021-05-31 18:36:34 +08:00
Da Zheng 9a0e13ac61 Speed up random number generation. (#2953)
* speed up random number generation.

* fix lint.

* Fix

* fix.

Co-authored-by: Zheng <dzzhen@3c22fba32af5.ant.amazon.com>
2021-05-28 19:17:53 +08:00
Kay Liu b8b0fd22b2 [Feature] add two fraud datasets (#2908)
* add two fraud dataset

* add comments and modify to heterogenous graph

* modify the node name based on datasets

* add assertion message

Co-authored-by: zhjwy9343 <6593865@qq.com>
2021-05-28 15:45:44 +08:00
Kay Liu 64d2a2aff7 [Feature] fix #2876, add two fake news datasets (#2939)
* [Feature] fix #2876, add two fake news datasets

* add name assertion

* add assertion message

Co-authored-by: zhjwy9343 <6593865@qq.com>
2021-05-28 14:29:26 +08:00
Da Zheng 18dbaebebc [Distributed] Specify the graph format for distributed training (#2948)
* explicitly set the graph format.

* fix.

* fix.

* fix launch script.

* fix readme.

Co-authored-by: Zheng <dzzhen@3c22fba32af5.ant.amazon.com>
Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-71-112.ec2.internal>
2021-05-26 18:09:30 +08:00
nv-dlasalle 1db4ad4fcc Move pointer dereferencing in CDFSampler::draw() and AliasSampler::draw() to inside of conditional (#2943)
Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
2021-05-25 13:53:53 +08:00
nv-dlasalle 66eb240d15 [Bugfix] Include NCCL as a submodule (#2934)
* Add NCCL as a submodule

* Allow using third_party/nccl or system nccl

* Add nccl_external as a dependency

* Fix conditional

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
2021-05-25 09:46:16 +08:00
Xiangkun Hu 06b9ec2e8e [Doc] Add two papers to awesome paper list (#2936)
* PPIDataset

* Revert "PPIDataset"

This reverts commit 264bd0c960cfa698a7bb946dad132bf52c2d0c8a.

* data pipeline user guide

* remove chapter numbers

* Update data.rst

* image in dataset userguide

* update links using ref

* modify the link of save_graphs and load_graphs in dataset user guide

* move image to s3 server.

* fix links and ref

* Hide implementations that may cause confusions to the user

* add papers

* fix number of classes in Amazon Cobuy datasets

* add two papers to Awesome paper list

* Update README.md

* add four papers

* add two papers

* Add awesome papers

* Fix index in paper list

Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2021-05-24 14:38:12 +08:00
Chuang, Yun-Shiuan c46602d7d8 [Doc] Fix a typo in the tutorial for link prediction (#2928)
Fix a typo in the tutorial for "Link Prediction using Graph Neural Networks".

Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
2021-05-23 22:43:45 +08:00
nv-dlasalle ae8dbe6d3c [Feature][Performance] Implement NCCL wrapper for communicating NodeEmbeddings and sparse gradients. (#2825)
* Split NCCL wrapper from sparse optimizer and sparse embedding

* Add more unit tests for single node nccl

* Fix unit test for tf

* Switch to device histogram

* Fix histgram issues

* Finish migration to histogram

* Handle cases with zero send/recieve data

* Start on partition object

* Get compiling

* Updates

* Add unit tests

* Switch to partition object

* Fix linting issues

* Rename partition file

* Add python doc

* Fix python assert and finish doxygen comments

* Remove stubs for range based partition to satisfy pylint

* Wrap unit test in GPU only

* Wrap explicit cuda call in ifdef

* Merge with partition.py

* update docstrings

* Cleanup partition_op

* Add Workspace object

* Switch to using workspace object

* Move last remainder based function out of nccl_api

* Add error messages

* Update docs with examples

* Fix linting erros

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2021-05-20 10:58:17 -07:00
xiang song(charlie.song) 0e9259b472 Add ED-GNN to Awesome Papers in DGL. (#2903)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-57-25.ec2.internal>
Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
2021-05-20 12:05:06 +08:00
Tianqi Zhang (张天启) 5d7e80f413 [Feature] Add bruteforce implementation for KNN with O(Nk) space complexity (#2892)
* add bruteforce impl

* add support for bruteforce-sharemem

* modify python API

* add tests

* change file path

* change python API

* fix lint

* fix test

* also check worst_dist in the last few dim

* use heap and early-stop on CPU

* fix lint

* fix lint

* add device check

* use cuda function to determine max shared mem

* use cuda to determine block info

* add memory free for tmp var

* update doc-string and add dist option

* fix lint

* add more tests

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
2021-05-19 18:27:43 +08:00
Mufei Li db0fb4eaef Update README.md (#2927)
Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
2021-05-19 15:45:07 +08:00
Quan (Andy) Gan 1968adbaf7 Update README.md (#2924) 2021-05-19 15:18:39 +08:00
Da Zheng 6e7f19f27b [Distributed] add distributed in-degree and out-degree. (#2918)
* add distributed in-degree and out-degree.

* update comments.

* fix a bug.

* add tests.

* add tests.

* fix a bug.

* fix docstring.

* update doc.

* fix

* fix.

Co-authored-by: Zheng <dzzhen@3c22fba32af5.ant.amazon.com>
Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
2021-05-18 19:46:09 +08:00
V.E 50492d56a8 Fixing issue #2921 (#2922)
* fixing #2921

* fixing #2921
2021-05-18 09:54:38 +08:00
yifeim c018436588 [Example] add latent dirichlet allocation (#2883)
* add lda model

* tweak latent dirichlet allocation

* Update README.md

* Update README.md

* update example index

* update header

* minor tweak

* add example test

* update doc

* Update README.md

* Update README.md

* add partial_fit for free

* Update examples/pytorch/lda/lda_model.py

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>

* Update examples/pytorch/lda/example_20newsgroups.py

Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>

* Update lda_model.py

* bugfix torch Gamma uses rate parameter

Co-authored-by: Yifei Ma <yifeim@amazon.com>
Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
2021-05-17 20:25:36 +08:00