Neighbor Sampling & Skip Connection

When “python gcn_ns_sc.py --dataset cora --self-loop --num-neighbors 2 --batch-size 1000000 --test-batch-size 1000000 --gpu 0” is being executed, I’m experiencing RuntimeErrorL Expected object of backend CUDA but got backend CPU for argument #4 ‘mat1. Why?

@zhengda1936 Could you please take a look?

I think this is a bug in our 0.2 release. We’ve released v0.3 yesterday, could you try our new version and see whether this error still exists? Thanks

0.3 installation guide: https://docs.dgl.ai/install/index.html
Please pay attention to cuda installation guide if you want to use gpu.